-Original Message-
From: Tedd Sperling [mailto:t...@sperling.com]
Sent: Thursday, May 31, 2012 1:01 PM
To: php-general General
Cc: Tristan
Subject: Re: [PHP] [foreach] - is it proper to...
On May 31, 2012, at 12:48 PM, Tristan wrote:
> I'm using Zend Studio and it had a suggest
On May 31, 2012, at 12:48 PM, Tristan wrote:
> I'm using Zend Studio and it had a suggestion that I do a foreach as such
>
> foreach($entry as $entry){
>
> }
>
> instead of
>
> foreach($entries as $entry){
>
> }
>
> they both seem to work but, from a readability standpoint and just makes
> m
Thanks, well that's why I was asking because we just let a guy go for doing
stuff like that among other obvious bad coding issues and terrible logic.
The guy didn't know what he was doing but, I wanted to make sure I wasn't
out of my mind by pointing that out. I am new to Zend Studio so I don't
kno
On Thu, May 31, 2012 at 12:48 PM, Tristan wrote:
> I'm using Zend Studio and it had a suggestion that I do a foreach as such
>
> foreach($entry as $entry){
>
> }
which would be the same as `foreach ($entry)` --- a syntax
option that doesn't exist, but would be ideal.
> foreach($entries
I'm using Zend Studio and it had a suggestion that I do a foreach as such
foreach($entry as $entry){
}
instead of
foreach($entries as $entry){
}
they both seem to work but, from a readability standpoint and just makes
more sense to me to use method 2. Is it bad practice to go with the 1st
met
5 matches
Mail list logo