You are here: Re: [PHP] What's the safest way to destory/wipe out the arrays within the associative arrays? « PHP « IT news, forums, messages
Re: [PHP] What's the safest way to destory/wipe out the arrays within the associative arrays?

Posted by Paul Waring on 10/13/05 18:34

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

 

Navigation:

[Reply to this message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация