Re: What's the safest way to destory/wipe out the arrays within the associative arrays?

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

 



On Wed, Oct 05, 2005 at 03:12:51PM -0400, Scott Fletcher wrote:
> What is the safest way to destroy or take out the
> $xml['NEWSFEED']['0']['MESSAGE']['2']..... associative arrays starting with
> ['2'] and those arrays inside of the ['2'] array path?
> 
> The unset() would make it not possible to reassign the data to this array
> once again, that is what I do not want.

Could you not just do:

$xml['NEWSFEED']['0']['MESSAGE']['2'] = null;

I think that would still keep the array element open, but there would be
no data there.

Paul

-- 
Rogue Tory
http://www.roguetory.org.uk

-- 
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