Re: How to drop a element from an array
| From: | Alex Shi | Date: | Sun, 06 Oct 2002 22:48:26 +0000 |
| Subject: | Re: How to drop a element from an array | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119023@lists.php.net to get a copy of this message | ||
Thanks!
Alex Shi
"Timothy J Hitchens" <tim@hitcho.com.au> 写入消息新闻
:002f01c26d8a$77332470$0500a8c0@BAMBINO...
unset $some_variable[4];
then you would need to resort... etc (if needed)
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:43 AM
To: php-general@lists.php.net
Subject: Re: [PHP] How to drop a element from an array
Yes I have read about the array functions in the manul. But I don't
think they are what I need. What I want is to drop what ever an element
from an array, not just from top or bottom.
I can create a function to do this. But I need a better solution, that
is to say not to cost too much memery.
Alex Shi
"Timothy J Hitchens" <tim@hitcho.com.au> 写入消息新闻
:002e01c26d89$780c14c0$0500a8c0@BAMBINO...
> 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