RE: Simple array question, part 2

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Nope, array_shift()... is taking off the last one too....
Josip sent me the solution:
$array = array_values($array);

Cheers,
Ryan


On 4/6/2005 6:45:40 PM, Jay Blanchard (jay.blanchard@xxxxxxxxxxxxxxxxxxxxx)
wrote:
> [snip]
>
> Nope, array_pop is just deleting the last key/value....i need to reindex
>
> it
>
> without deleteing anything.
>
> [/snip]
>
>
>
> Always reply to the list ('reply all') as the individual who answered
>
> you might not be there. Always. I mean it.
>
>
>
> You
> shouldn't just delete an item from an array, it is improper
> handling....
> Thats right, it's
> not array_pop(), its array_shift()...
> musta' had a
> brain fart and you didn't see the other array functions....



-- 
No virus found in this outgoing message.
Checked by AVG Anti-Virus.
Version: 7.0.308 / Virus Database: 266.9.3 - Release Date: 4/5/2005

-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux