Re: Creating Arrays

From: Date: Thu, 12 Apr 2001 20:00:37 +0000
Subject: Re: Creating Arrays
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-48359@lists.php.net to get a copy of this message
[posted and emailed] On 12 Apr 2001 12:48:52 -0700, cleaner@singlesconnection.org (Jeffrey Greer) wrote: > >// putting the values in an array is trivial, but you should do it >like this >// or you will confuse your numeric ids with the ids that php >puts in an array automatically Whoops. I was wrong about array. Keys are only filled in automatically if you do this: $my_array[] = 'some value'; now $my_array[0] = 'some value'; >-- >Jeff Greer >- B.S. computer science - Univ. MO - Rolla >- I do web hosting and development. Details > at http://www.singlesconnection.org/services/ -- Jeff Greer - B.S. computer science - Univ. MO - Rolla - I do web hosting and development. Details at http://www.singlesconnection.org/services/

« previous php.general (#48359) next »