note 110580 deleted from function.array-merge by aharvey
| From: | aharvey@php.net | Date: | Mon, 12 Nov 2012 01:31:24 +0000 |
| Subject: | note 110580 deleted from function.array-merge by aharvey | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-191876@lists.php.net to get a copy of this message | ||
Note Submitter: nmmm at nmmm dot nu
----
to produce array('#', 'a'..'z'), you can use:
foreach( array('#' => '#') + range('a','z') as $a)
echo $a;
notice '#' must have different key, because else it overwrite the letter 'a'