Re: delete an element from an array
| From: | Christian Cresante | Date: | Mon, 05 Mar 2001 17:37:51 +0000 |
| Subject: | Re: delete an element from an array | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-42641@lists.php.net to get a copy of this message | ||
Since its the last element, just pop it out:
array_pop()
--- 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
>
__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail.
http://personal.mail.yahoo.com/