RE: [PHP] Numbered Arrays

2002-02-25 Thread Hunter, Ray
PM To: Phillip S. Baker Cc: PHP Email List Subject: Re: [PHP] Numbered Arrays On Mon, 2002-02-25 at 13:56, Phillip S. Baker wrote: > What is the quick way to generate numbered arrays? > I cannot seem to find it in my documentation. > > Looking to generate and populate an array with t

Re: [PHP] Numbered Arrays

2002-02-25 Thread Lars Torben Wilson
On Mon, 2002-02-25 at 13:56, Phillip S. Baker wrote: > What is the quick way to generate numbered arrays? > I cannot seem to find it in my documentation. > > Looking to generate and populate an array with the numbers 0-23. > > Thanks > > Phillip http://www.php.net/range Cheers, Torben

RE: [PHP] Numbered Arrays

2002-02-25 Thread Hunter, Ray
Put it in a for loop and add data to the array. Example: for( $i = 0; $i < 24; $i++) { $arr[$i] = "Data here."; } This is one of the fastests; however, there are other ways as well. Ray Hunter Firmware Engineer ENTERASYS NETWORKS -Original Message