Since its the last element, just pop it out:
array_pop()

--- kaab kaoutar <[EMAIL PROTECTED]> 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:
> [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]
> To contact the list administrators, e-mail:
> [EMAIL PROTECTED]
> 


__________________________________________________
Do You Yahoo!?
Get email at your own domain with Yahoo! Mail. 
http://personal.mail.yahoo.com/

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to