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 [[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]
--
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]