Re: Static and Global at the same time!

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 




A static defined variable used in a function will keep it's value each time the function is called, but this function is available only for function's scope. A global defined variable used in a function will keep it's values (as long as this value is not changed in "body" of the script or in other functions), and the variable is available for script scope.

	Andy

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux