Re: Make strict?
| From: | Richard Lynch | Date: | Wed, 03 Jul 2002 01:32:24 +0000 |
| Subject: | Re: Make strict? | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-105098@lists.php.net to get a copy of this message | ||
> How do you make you PHP scripts require explicit variable declaration?
>Like Java/SQL/C/C++ or 'use strict;' in PERL or 'Option Explicit' in
>VB/VBScript
The closest you can come is:
<?php error_reporting(E_ALL);?>
This can also be set in php.ini and/or .htaccess
Note that PHP simply does not *have* variable declarations, but at least it
will bitch at you when you do something stupid like use a variable that has
no value.
--
Like Music? http://l-i-e.com/artists.htm