Jough P wrote:
Greetings all, I'm getting "Notice: Undefined offset" regarding this line of code while inside a for loop:
if($this->inputs[$i] == "user")


I assume the 'offset' that is undefined is $i. But $i is defined is the for statement above it.

It doesn't mean that $i isn't defined. It means that $this->inputs[$i] isn't defined for the value of $i where the notice is generated.


--
Stuart

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to