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

<?php
error_reporting(E_ALL);

$array = range(0, 23);

print_r($array);

?>


Cheers,

Torben

-- 
 Torben Wilson <[EMAIL PROTECTED]>
 http://www.thebuttlesschaps.com
 http://www.hybrid17.com
 http://www.inflatableeye.com
 +1.604.709.0506


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to