[FX.php List] 1 success, one failure

Bob Patin bob at patin.com
Thu Feb 7 09:07:22 MST 2008


OH yeah, I recall now someone telling me to use that...

I use it in some places, for session variables, but haven't been  
stringent about it...

Thanks,

Bob


On Feb 7, 2008, at 9:58 AM, Dale Bengston wrote:

> 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
>
> _______________________________________________
> 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