RE: [PHP] How to drop a element from an array
| From: | John W. Holmes | Date: | Sun, 06 Oct 2002 22:50:23 +0000 |
| Subject: | RE: [PHP] How to drop a element from an array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119021@lists.php.net to get a copy of this message | ||
That adds an element to an array. Just use unset.
unset($array[0]);
---John Holmes...
> -----Original Message-----
> From: Timothy J Hitchens [mailto:tim@hitcho.com.au]
> Sent: Sunday, October 06, 2002 6:41 PM
> To: php-general@lists.php.net
> Subject: RE: [PHP] How to drop a element from an array
>
> Hint... look at array_push etc (like a stack)
>
>
> Timothy Hitchens (HITCHO)
> tim@hitcho.com.au
>
> HITCHO has Spoken!
>
>
>
>
>
>
> -----Original Message-----
> From: Alex Shi [mailto:chpshi@eol.ca]
> Sent: Monday, 7 October 2002 8:35 AM
> To: php-general@lists.php.net
> Subject: [PHP] How to drop a element from an array
>
>
> Is there a good way do drop an element from an array?
>
> Alex Shi
>
>
>
> --
> 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