Re: Odd Code Error.

From: Date: Wed, 21 Jan 2004 23:26:07 +0000
Subject: Re: Odd Code Error.
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-175357@lists.php.net to get a copy of this message
> > So do you recommend using isset($name) instead of ($name) ? And what > are you meaning by setting the var as in var $name ? i usually set them > in classes but how about in normal scripts and functions ? > Hmm i was checking out a pear class, what about the variables within a function ? like function foo($name) { if ($name) { } } or foo($name) { if (isset($name)) { } } it uses isset on variables coming outside the function

« previous php.general (#175357) next »