RE: [PHP] Require variable declaration?

From: Date: Wed, 27 Mar 2002 21:01:01 +0000
Subject: RE: [PHP] Require variable declaration?
Groups: php.general 
Request: Send a blank email to php-general+get-90422@lists.php.net to get a copy of this message
You can catch typos by setting the error reporting level to E_ALL (in php.ini). PHP will then give you a warning whenever a variable is used before it has been assigned a value. Kirk > That's too bad, > I used to do some ASP which is weakly typed too but I still > could use "Option Explicit" to require variables to be declared. > Then a small typo would produce very hard-to-find errors.

« previous php.general (#90422) next »