Re: [PHP4BETA] Problem with unset()
| From: | Joey | Date: | Wed, 28 Jul 1999 19:03:18 +0000 |
| Subject: | Re: [PHP4BETA] Problem with unset() | ||
| References: | 1 | Groups: | php.version4 |
| Request: | Send a blank email to php-version4+get-2920@lists.php.net to get a copy of this message | ||
Also, try
unset($MyArray);
global $MyArray = array();
ie, switch the order in which you call them...
-Joey Smith
On Wed, 28 Jul 1999, Andrey Zmievski wrote:
> Ken Leshner wrote:
> > How can I delete the key/value pairs from a global array, yet keep
> > its reference around so I can fill it up again?
>
> Just do $MyArray = array();
>
> -Andrey
> * The future has arrived, it's just not evenly distributed. -W. Gibson *
>
> --
> PHP 4 Beta
>
>