On Tue, 7 Sep 2004, Mehdi Achour wrote:
> Derick Rethans wrote:
>
> >On Tue, 7 Sep 2004, Mehdi Achour wrote:
> >
> >
> >
> >>Isn't like count() ? someone told me that it was better to store the
> >>count in a variable and use it in the foreach to avoid calling it in
> >>every loop. If I'm wrong, f
> So, using count() in a for is bad, but okay in a foreach ?
foreach makes a copy, for and each work directly on the subject.
the reason you were told to evaluate the count into a tmp var was to
save the loop from re-evaluating a constant (in most cases, for the
duration of the loop) value.
The
Derick Rethans wrote:
On Tue, 7 Sep 2004, Mehdi Achour wrote:
Isn't like count() ? someone told me that it was better to store the
count in a variable and use it in the foreach to avoid calling it in
every loop. If I'm wrong, feel free to revert my commit !
No, you should revert it yourself
On Tue, 7 Sep 2004, Mehdi Achour wrote:
> Isn't like count() ? someone told me that it was better to store the
> count in a variable and use it in the foreach to avoid calling it in
> every loop. If I'm wrong, feel free to revert my commit !
No, you should revert it yourself. It doesn't make sens
Derick Rethans wrote:
In-Reply-To: <[EMAIL PROTECTED]>
Message-ID: <[EMAIL PROTECTED]>
References: <[EMAIL PROTECTED]>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
X-Virus-Scanned: by amavisd-new at jdimedia.nl
X-Amavis-Alert: BAD HEADER Improper folded header field made up entirely
On Tue, 7 Sep 2004, Mehdi Achour wrote:
> didou Tue Sep 7 10:25:39 2004 EDT
>
> Modified files:
> /phpdoc/en/reference/filesystem/functions glob.xml
> Log:
> don't use glob in a foreach
WHy not? I do that all the time and it works fine.
Derick
--
Derick Rethans
http://derick
*cough* make test *cough* :)
On Thu, 2003-07-03 at 10:23, Ali wrote:
> Just a little typo-fix.
>
>
> On Thu, 2003-07-03 at 17:12, Hartmut Holzgraefe wrote:
> > hholzgraThu Jul 3 11:12:28 2003 EDT
> >
> > Modified files:
> > /phpdoc/en/reference/filesystem/functi
It would be nice to add these to file system constants too
[filesystems/constants.xml]
Goba
- Original Message -
From: "John Coggeshall" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, November 14, 2002 12:36 AM
Subject: [PHP-DOC] cvs: phpdoc /en/reference/filesystem/function