note 34187 modified in control-structures.for by vrana
| From: | vrana@php.net | Date: | Thu, 05 Aug 2004 18:11:33 +0000 |
| Subject: | note 34187 modified in control-structures.for by vrana | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-74041@lists.php.net to get a copy of this message | ||
If you're into 1-liners or compact code:
<?php
implode("\n", range('a','z'));
?>
Run-times (on my boxes) are comparable to the other methods using for(). This version is (arguably)
more readable than other solutions.
--was--
If you're into 1-liners or compact code:
implode("\n", range('a','z'));
Run-times (on my boxes) are comparable to the other methods using for(). This version is (arguably)
more readable than other solutions.
http://php.net/manual/en/control-structures.for.php