> when create an array using:
> $new_array[] = 'something';
> first index of new array is 0
>
> how can I though set that first index is 1 - except "reorganize" array
> after is created?
>
> thanks
>
> -afan

$new_array = array(1 => 'first','second','third');

echo $new_array[1];  <--- Will echo first

-- 
--Matthew Sims
--<http://killermookie.org>

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

Reply via email to