Re: ASP Option Explicit equivalent in PHP

From: Date: Wed, 09 Oct 2002 23:16:41 +0000
Subject: Re: ASP Option Explicit equivalent in PHP
References: 1 2  Groups: php.general 
Request: Send a blank email to php-general+get-119474@lists.php.net to get a copy of this message
wait, I take that back... I meant "to see uninitialized variable use", since there's really no such thing as "declaring" a variable in PHP unless it's a class member. "Nick Eby" <nick_eby@bonzidev.com> wrote in message news:20021009231634.21303.qmail@pb1.pair.com... > 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 (#119474) next »