Re: Does passing an uninitialized array variable initialize it? (PHP 5)



On Jul 31, 7:20 am, "Paul Lautman" <paul.laut...@xxxxxxxxxxxxxx>
wrote:
google2...@xxxxxxxxxxxxxxxx wrote:
Regardless of anything else, in the expression trim($rank[$i++]), you are
referencing an uninitialised variable and that is bad programming practice
and should throw an error if error checking is set high enough.

? Perhaps I'm misunderstanding how post increment works, but I thought
the sequence would go like this:

1. Pass $rank[$i] to trim()
2. Increment $i

Am I wrong?

.