Re: setting index of array as 1

From: Date: Mon, 18 Oct 2004 17:27:40 +0000
Subject: Re: setting index of array as 1
Groups: php.general 
Request: Send a blank email to php-general+get-199749@lists.php.net to get a copy of this message
$new_array[1] = 'something'; - or - $new_array = array(1=>'something'); ----- Original Message ----- From: Afan Pasalic <afan@afan.net> Date: Monday, October 18, 2004 1:14 pm Subject: [PHP] setting index of array as 1 > 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 > > -- > PHP General Mailing List (http://www.php.net/) > To unsubscribe, visit: http://www.php.net/unsub.php > >

« previous php.general (#199749) next »