Re: Removing a row from an Array
| From: | Roberto Mansfield | Date: | Mon, 04 Jun 2007 19:32:02 +0000 |
| Subject: | Re: Removing a row from an Array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-256059@lists.php.net to get a copy of this message | ||
Can't you just unset() the values you don't want?
Ken Kixmoeller -- reply to ken@kixmoeller.com wrote:
> Hey - - - - - - --
>
> 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)?
>
> thanks - - -
>
> Ken