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-----
From: Phillip S. Baker [mailto:[EMAIL PROTECTED]]
Sent: Monday, February 25, 2002 2:56 PM
To: PHP Email List
Subject: [PHP] Numbered Arrays
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php