The fastest way is going to be array_values():

http://www.php.net/array_values

--Larry Garfield

On 8/31/10 10:43 AM, Tontonq Tontonq wrote:
a quick question
lets say i have an array like that


Array
(
[300] =>  300
[301] =>  301
[302] =>  302
[303] =>  303
[304] =>  304
[305] =>  305
[306] =>  306
[307] =>  307
[308] =>  308
...
how can i change keys to 0,1,2,3,.. by faster way
(it should like that)>
Array
(
   [0] =>  300
   [1] =>  301
   [2] =>  302
   [3] =>  303
    ....


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

Reply via email to