Re: variable initialization
| From: | Andrei Zmievski | Date: | Wed, 15 Dec 1999 17:37:22 +0000 |
| Subject: | Re: variable initialization | ||
| References: | 1 | Groups: | php.dev |
| Request: | Send a blank email to php-dev+get-13720@lists.php.net to get a copy of this message | ||
On Wed, 15 Dec 1999, Dave Perkins wrote:
>
> Can I count on the value of a variable to contain the value of zero at the
> time of creation? In other words does a variable in PHP behave like a
> static in 'C' or must I assume it contains garbage?
>
> Thanks in advance for any assistance.
Define 'creation'. Variables in PHP are created on demand as you
manipulate them. You can use isset() function to test whether a certain
variable exists.
-Andrei
* E Pluribus UNIX. *