Re: Does passing an uninitialized array variable initialize it? (PHP 5)
- From: google2006@xxxxxxxxxxxxxxxx
- Date: Mon, 30 Jul 2007 14:29:34 -0700
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?
.
- References:
- Does passing an uninitialized array variable initialize it? (PHP 5)
- From: google2006
- Re: Does passing an uninitialized array variable initialize it? (PHP 5)
- From: Paul Lautman
- Does passing an uninitialized array variable initialize it? (PHP 5)
- Prev by Date: Re: Does passing an uninitialized array variable initialize it? (PHP 5)
- Next by Date: Re: Does passing an uninitialized array variable initialize it? (PHP 5)
- Previous by thread: Re: Does passing an uninitialized array variable initialize it? (PHP 5)
- Next by thread: Re: Does passing an uninitialized array variable initialize it? (PHP 5)
- Index(es):