Re: Undefined offset

From: Date: Mon, 01 Mar 2004 16:15:01 +0000
Subject: Re: Undefined offset
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-179174@lists.php.net to get a copy of this message
could be your $i > length of array 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.
-- Raditha Dissanayake. ------------------------------------------------------------------------ http://www.radinks.com/sftp/ | http://www.raditha.com/megaupload Lean and mean Secure FTP applet with | Mega Upload - PHP file uploader Graphical User Inteface. Just 150 KB | with progress bar.

« previous php.general (#179174) next »