Re: Undefined offset

From: Date: Mon, 01 Mar 2004 16:09:52 +0000
Subject: Re: Undefined offset
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-179176@lists.php.net to get a copy of this message
Hello Jough, Monday, March 1, 2004, 3:58:31 PM, you wrote: JP> Greetings all, I'm getting "Notice: Undefined offset" regarding this JP> line of code while inside a for loop: if($this->>inputs[$i] == "user") JP> I assume the 'offset' that is undefined is $i. But $i is defined is JP> the for statement above it. $i should be in single-quotes, although it isn't the cause of the error. Your var (inputs) isn't defined in your class. -- Best regards, Richard Davey http://www.phpcommunity.org/wiki/296.html

« previous php.general (#179176) next »