removing an array from a compound array

From: Date: Wed, 01 Jul 2009 23:45:57 +0000
Subject: removing an array from a compound array
Groups: php.general 
Request: Send a blank email to php-general+get-294815@lists.php.net to get a copy of this message
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

« previous php.general (#294815) next »