RE: [PHP] ASP Option Explicit equivalent in PHP
| From: | John W. Holmes | Date: | Wed, 09 Oct 2002 22:54:19 +0000 |
| Subject: | RE: [PHP] ASP Option Explicit equivalent in PHP | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-119471@lists.php.net to get a copy of this message | ||
> I'm on a roll with the ASP questions these days, since I picked up the
> Chiliasp.
>
> Here's one:
>
> ASP has the function Option Explicit build in, it yells when you use
> variables without prior declaration, couldn't find anything like that
in
> PHP documentation.
> Thanks in advance.
If you set error_reporting to E_ALL (or include E_NOTICE, I think), then
PHP will give warnings when an undeclared variable is used.
---John Holmes...