Justtechjobs.com Find a programming school near you






Online Campus Both


php-general | 2001032

Re: [PHP] 'How to jump..' part 2 From: Christian Dechery (lemming <email protected>)
Date: 03/25/01

>I don't think PHP will understand commas as command separators.
>
>Perhaps what you could try is a simple loop 0 to 6 and for each iteration
>of the loop, unset the corresponding array element
>
>for($i=0; $i <= 6; $i++) {
> unset($array[$i];
> }

this actually worked... thanks for the hint:

<pre>
         function array_sshift(&$array,$number_of_elements=1)
         {
                 for($count=0;$count<$number_of_elements;$count++)
                 {
                         array_shift($array);
                 }
         }
</pre>
____________________________
. Christian Dechery (lemming)
. http://www.tanamesa.com.br
. Gaita-L Owner / Web Developer

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe <email protected>
For additional commands, e-mail: php-general-help <email protected>
To contact the list administrators, e-mail: php-list-admin <email protected>