Using array_pop wouldn't do it, as it just removes the last element.

You could use unset() for the rows you don't want to keep.

Best regards,
Peter Lauri

www.dwsasia.com - company web site
www.lauri.se - personal web site
www.carbonfree.org.uk - become Carbon Free


> -----Original Message-----
> From: Jay Blanchard [mailto:[EMAIL PROTECTED]
> Sent: Monday, June 04, 2007 9:25 PM
> To: Ken Kixmoeller -- reply to [EMAIL PROTECTED]; php-
> [EMAIL PROTECTED]
> Subject: RE: [PHP] Removing a row from an Array
> 
> [snip]
> To do this, I am:
> 
>   - looping through the array
>   - copying the rows that I want to *keep* to a temp array, and
>   - replacing the original array with the "temp' one.
> 
> Seems convoluted, but I couldn't find any function to remove a row of
> an array. Am I missing something (other than a few brain cells)?
> [/snip]
> 
> http://us2.php.net/manual/en/function.array-pop.php
> 
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to