Re: Static and Global at the same time!

From: Date: Fri, 10 Feb 2006 15:22:56 +0000
Subject: Re: Static and Global at the same time!
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-230211@lists.php.net to get a copy of this message
What's the use of global static variables? Andy Miguel Guirao wrote:
Hello list!! 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; } Best Regards, ----------------------- Miguel Guirao Aguilera Logistica R8 TELCEL Tel. (999) 960.7994


« previous php.general (#230211) next »