How do I use PHP to auto-increment a numeric variable on page refresh?
Foe example, for $i=10 there is an output of this:
$i=10
Page has be
You can easily do it with the help of cookies
$cookieName = 'count'; $count = isset($_COOKIE[$cookieName]) ? $_COOKIE[$cookieName] : '';
$newCount = $count+1; setcookie($cookieName,$newCount);
$count will return back the updated value