Re: ASP Option Explicit equivalent in PHP

From: Date: Wed, 09 Oct 2002 23:15:14 +0000
Subject: Re: ASP Option Explicit equivalent in PHP
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-119473@lists.php.net to get a copy of this message
There's 2 ways to get that: use the php.ini setting ERROR_REPORTING, or the function error_reporting(). to see undeclared variable use, call error_reporting(E_NOTICE) at the top of your script. http://www.php.net/manual/en/function.error-reporting.php /nick "R . Z ." <php@finalbanana.com> wrote in message news:php.general-119468@news.php.net... > 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. > > R>

« previous php.general (#119473) next »