Should you use functions/methods inside a if/foreach statement as a syntax?
So... i saw this in some of my colleagues code foreach( myfunction() as $value) { //use $value to do something } i, i... don;t do this and i find it WROONG in the long run, because i had a bad experience once when the server had a older version php a...
Join discussion