Re: Undefined Variable in IF...ELSE IF ...ELSE IF (NEWBIE ?)

From: Date: Fri, 15 Mar 2002 20:04:31 +0000
Subject: Re: Undefined Variable in IF...ELSE IF ...ELSE IF (NEWBIE ?)
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-88697@lists.php.net to get a copy of this message
>I have error's enabled in php.ini. I keep getting Undefined variable when >I run a script that contains IF or ELSE IF's. Is this normal because the >variable hasn't been set at the beginning of the script ? Yes. If the variable hasn't been defined previously you'll get a warning: if ( $dd > 2) true; Will warn unless $dd is initialized prior to the if(). Charlie

« previous php.general (#88697) next »