Re: delete an element from an array
| From: | Hardy Merrill | Date: | Mon, 05 Mar 2001 15:43:34 +0000 |
| Subject: | Re: delete an element from an array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42621@lists.php.net to get a copy of this message | ||
I'm not sure what you mean - are you trying to remove an element
from the array while you are *inside* a loop that is iterating
through that same array? If the loop is small enough, copy it
in so we can all see what you are trying to do.
kaab kaoutar [kaab_k@hotmail.com] wrote:
> Hi!
> how can i decrement the length of an array!
> In fact i'm trying to delete an element from an array , i'v put the content
> of i in i-1 (loop) and i tried to decrement the array legnththis way:
> count($x)=count($x)-1;
> but it generates an error!
>
> Thanks
>
> _________________________________________________________________________
> Get Your Private, Free E-mail from MSN Hotmail at
> http://www.hotmail.com.
>
>
> --
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
> For additional commands, e-mail: php-general-help@lists.php.net
> To contact the list administrators, e-mail: php-list-admin@lists.php.net