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
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
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
3 matches
Mail list logo