Re: Re: temporary error
| From: | Daniel Brown | Date: | Fri, 22 Feb 2008 15:06:11 +0000 |
| Subject: | Re: Re: temporary error | ||
| References: | 1 2 3 4 5 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-269864@lists.php.net to get a copy of this message | ||
<snip="100%">
Call me old-fashioned, old, or a bastard, but I still prefer:
for($i=0;$i<count($whatever);$i++) { }
For what do I need to remember the name of the counter increment?
Not only do I not care what it's name is, because it's disposable at
that moment, but I won't even be reusing it. And not just because I
won't be reusing it --- I can't reuse it. Another reason not to care.
Secondly, while Nate R. makes an excellent point about placing
some documentation in the head of the script, I still find that some
of my favorite characters often go far underused. And they are:
//
#
/* and */
--
</Dan>
Daniel P. Brown
Senior Unix Geek
<? while(1) { $me = $mind--; sleep(86400); } ?>