Can I have a variable that is static and global at the same time within a
function?
Let's say I have:
$data = "";
function newdata() {
 static global $data;
 $data [$i] = $newdatatobestored_inthearray;
}

Isn't a global variable static within the function by it's nature of being global? Making it so that the static keyword is superfluous?

Hmmm... Well, that is, of course, assuming that the function is the only place the variable is ever modified...

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

Reply via email to