[FX.php List] 1 success, one failure

Dale Bengston dbengston at preservationstudio.com
Thu Feb 7 08:58:19 MST 2008


I changed my logic from ...

if ($myvar)

... to ....

if (isset($myvar))

Dale

On Feb 7, 2008, at 9:53 AM, Bob Patin wrote:

> this may be a stupid question, but is declaring variables as simple  
> as just saying
>
> $myvar = 0;
>
> ?
>
> Or is there a more-accepted method of doing that, like one does for  
> declaring an array?
>
> BP
>
>
> On Feb 7, 2008, at 9:50 AM, Dale Bengston wrote:
>
>> Yes, undeclared variables got me too. That and short tages and some  
>> old, old references to $_HTTP_SERVER_VARS that should have been  
>> $_SERVER. The short tags and the $_HTTP_SERVER_VARS were easy to  
>> repair with global search-and-replace. The undeclared variables had  
>> to be done by hand.
>>
>> Dale
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list