class A public $var; // function...{ static $var=0; (as I want to change and keep the value) if.... $var+=1; }
Class B // function...{ include(A.class.php) $var2=new A if $var2->var1==0 .....
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)