[foreach] - is it proper to...

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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
method of coding or preferred?

Thanks, T

[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux