Home  |  Linux  | Mysql  | PHP  | XML
From:Andres Gonzalez Date:Wed Jul  1 23:45:57 2009
Subject:removing an array from a compound array
I have a compound array, that is, an array of an array of an array, etc,
that is about 5 arrays
deep. I currently search thru all of these arrays, and based on some
criteria, I want to delete
one of the arrays (along with all of its sub-arrays) in the middle.

What is the easiest way to delete such an "embedded" array?

array_splice() looked like a possibility, however, it requires that I
specify the array
for removal by using offsets which seems odd to me.

Isn't there a way to remove array A from array B?

Thanks,

-Andres
Navigate in group php.general at sever news.php.net
Previous Next


Your recent visits
Re: [PHP] SSI not working on PHP files with Apache
Re: [PHP] Questions about $_SERVER
Re: [PHP] Split up Date Range
RE: [PHP] PHP, Soap, and WDSL



  
© No Copyright
You are free to use Anything, but please consult your advocate before doing so as this website
also list content from other sources which may be copyrighted.
Site Maintained by Zareef Ahmed
Powered By PHP Consultants