I have three php files in my project namely "initial.php","inc.php","dec.php".I declared a variable a in intial.php
For example:
$every_where=0;
I have included "intial.php" in my other two files and I wanted to increment and decrement the value of variable "$everywher".So what i did is: In "inc.php"
$every_where= $every_where -1;
In "dec.php"
$every_where= $every_where -1;
But when I move from "inc.php" to "dec.php" it starts from 0 again, and vice-versa. But wanted a way so that the value of $every_where gets updated after every increment or decrement in initial.php.