Re: Deleting elements from the middle of an array

From: Date: Tue, 15 Mar 2011 06:08:28 +0000
Subject: Re: Deleting elements from the middle of an array
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-311855@lists.php.net to get a copy of this message
On Mar 15, 2011 4:10 AM, "Paul M Foster" <paulf@quillandmouse.com> wrote: > > On Mon, Mar 14, 2011 at 10:14:53PM +0100, Peter Lind wrote: > > > On 14 March 2011 22:10, Paul M Foster <paulf@quillandmouse.com> wrote: > > [snip] > > > >> Remove the elements, then use sort(). > > > > > > I've given a simplified example. The actual target array is > > > multi-dimensional. Sort() won't work in a case like that, as far as I > > > know. Moreover, I don't want the array sorted based on the element > > > values. > > > > Ahh, I see - you wanted me to guess at the actual circumstances of the > > case instead of provide an answer to the example you posted. My bad. > > Is the sarcasm really necessary? > Without it, would you learn to post the actual details instead of something irrelevant? If yes, then my apologies. Regards

« previous php.general (#311855) next »