php-general | 2001032
Date: 03/25/01
- Next message: Christian Dechery: "Re: [PHP] 'How to jump..' part 2"
- Previous message: dennis moore: "[PHP] PDF Output & Printing"
- In reply to: David Robley: "Re: [PHP] 'How to jump..' part 2"
- Next in thread: Christian Dechery: "Re: [PHP] 'How to jump..' part 2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
>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];
> }
I got it working, and YES... PHP did understand the commas as separators
just like in C...
so what I have now is
for(reset($array),$count=0;$count<7;array_shift($array),$count++);
//this removes the 7 top elements of an array...
I wonder if I did a function like array_sshift(&$array,$number_of_elements)
it would work fine... I'll try...
but thanks anyway... :)
____________________________
. 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>
- Next message: Christian Dechery: "Re: [PHP] 'How to jump..' part 2"
- Previous message: dennis moore: "[PHP] PDF Output & Printing"
- In reply to: David Robley: "Re: [PHP] 'How to jump..' part 2"
- Next in thread: Christian Dechery: "Re: [PHP] 'How to jump..' part 2"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

