Re: no default value

From: Date: Wed, 18 Jul 2007 13:31:24 +0000
Subject: Re: no default value
References: 1 2 3  Groups: php.general 
Request: Send a blank email to php-general+get-259108@lists.php.net to get a copy of this message
tedd wrote:
At 1:46 PM +0100 7/17/07, Stut wrote:
... but you can get some of the way there by enabling the display of notices which will tell you whenever a variable is used without being initialised.
How?
Look in php.ini for error_reporting. With it enabled if you try to use a variable without assigning a value to it it will generate a notice. There are a lot of situations this won't cover, but it covers more than having it disabled. -Stut -- http://stut.net/

« previous php.general (#259108) next »