I'm having an issue with a var value, that should increase everytime a function runs.
Illustrative code:
$i = 1;
function() {
...
$i++;
}
This function is called on a page multiple times, and i need that $i value to be used on a lot of stuff inside it.
Thing is, $i value always ends up with the value equal to 1.
Any clues?
Thanks