Re: Correct Coding

From: Date: Thu, 07 Aug 2003 18:31:26 +0000
Subject: Re: Correct Coding
References: 1 2 3 4 5  Groups: php.general 
Request: Send a blank email to php-general+get-158707@lists.php.net to get a copy of this message
* Thus wrote Martin Peck (mail@martinpeck.net): > > > That can generate an error if $Task was never assigned a value. > > > > > > > could you not do > > > > if(@$Task == "Add" ){do something } > > > > to suppress the error of the variable not being set? > > I have never seen php give an error if $Task is not set to anything. I > would have said that your error_reporting level doesnt have E_NOTICE set. Curt -- "I used to think I was indecisive, but now I'm not so sure."

« previous php.general (#158707) next »