Yes, I agree it is cleaner (that is how I typically do it), but what's the actual effect on performance? How it is executed? Is this faster by not creating a variable or slower because in the loop construct? Or does this have no effect whatsoever at compile time? I'm not doing this for any speed gain, just curious.
Maybe this is better off in the Advanced PHP area.
edit: Basically I'd just like to know if this is ok to do; will I be using more resources if I execute code like this, although I most likely never will? It is silly to ask if I won't be using it, but I'm curious to how this is compiled and executed. Anyone?