Re: <OPTION
| From: | Jochem Maas | Date: | Thu, 26 Oct 2006 20:44:19 +0000 |
| Subject: | Re: <OPTION | ||
| References: | 1 2 3 4 5 6 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-243707@lists.php.net to get a copy of this message | ||
Robert Cummings wrote:
> On Thu, 2006-10-26 at 15:31 +0200, Jochem Maas wrote:
>> bunch of space wasters ;-)
>>
>> <?php foreach (range(1, 31) as $d) echo '<option
>> value="',$d,'"',($d = $selDay?'
>>
>> selected="selected"':''),'>',$d,'</option>';
>> ?>
>
> Specifically:
>
>> range(1, 31)
>
> Memory waster ;)
any idea as to what the damage is as compared to the classic for loop?
>
> Cheers,
> Rob.