Re: Deleting elements from the middle of an array
| From: | Paul M Foster | Date: | Tue, 15 Mar 2011 03:10:26 +0000 |
| Subject: | Re: Deleting elements from the middle of an array | ||
| References: | 1 2 3 4 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-311849@lists.php.net to get a copy of this message | ||
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?
Paul
--
Paul M. Foster
http://noferblatz.com
http://quillandmouse.com