Re: Feature Suggestion
| From: | Mike Eheler | Date: | Fri, 18 Jan 2002 18:27:23 +0000 |
| Subject: | Re: Feature Suggestion | ||
| References: | 1 2 | Groups: | php.dev php.general |
| Request: | Send a blank email to php-dev+get-77457@lists.php.net to get a copy of this message | ||
range() is good, but what I was getting at was a shorthand/shortcut/alternate syntax kinda thing.
Mike
Julio Nobrega Trabalhando wrote:
<?php $array = range('a','z'); ?> As usual your mileage may vary but it worked here :-) -- Julio Nobrega. Um dia eu chego lá: http://sourceforge.net/projects/toca Ajudei? Salvei? Que tal um presentinho? http://www.submarino.com.br/wishlistclient.asp?wlid=664176742884 "Mike Eheler" <meheler@idearesource.com> wrote in message news:3C477371.2050101@idearesource.com...If this is the wrong place for it, please point me to the right place. This is real small, though.. I'd like to see a shorthand for defining arrays.. for example $ucase_alphabet = array(['A'..'Z']); (creates an array of all alphabet characters, uppercase) $numeric = array([1..100]); Or something of that sort. Just something that popped into my mind. PHP feels like a language that has been built on little suggestions like this, so I thought I'd post it. :) Mike