Re: Create Array??
| From: | Alexander Skwar | Date: | Sun, 23 Sep 2001 07:36:01 +0000 |
| Subject: | Re: Create Array?? | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-68405@lists.php.net to get a copy of this message | ||
So sprach »KPortsmout@aol.com« am 2001-09-23 um 02:09:17 -0400 :
> Hi,
>
> If I have a value $num = 32; based on this how can I create an Array of
> numbers 1 - 32, something like this...
>
> <?
> $num = "32";
$arr = array();
> for ($i = 1; $i <= $num; $i++)
$arr[] = $i;
Alexander Skwar
--
How to quote: http://learn.to/quote (german) http://quote.6x.to (english)
Homepage: http://www.digitalprojects.com | http://www.iso-top.de
iso-top.de - Die günstige Art an Linux Distributionen zu kommen
Uptime: 3 days 19 hours 40 minutes