Home »
Imported messages »
comp.lang.php »
Parameter passing question
Re: Parameter passing question [message #173556 is a reply to message #173553] |
Mon, 18 April 2011 19:40   |
Unrest
Messages: 10 Registered: April 2011
Karma:
|
Junior Member |
|
|
Am Mon, 18 Apr 2011 19:19:11 +0000 schrieb Denis McMahon:
> On Mon, 18 Apr 2011 19:07:46 +0000, Unrest wrote:
>
>> sidenote: isset evaluates to true only if the variable exists and is
>> not null.
>
> An empty string doesn't equate to null if you use the right comparison
> operator!
>
> ("" === null) returns false
>
> so, test if the variable is set, and if it is set, test for empty string
>
> Rgds
>
> Denis McMahon
SORRY ("big sorry"). Been a bit distracted when posting that.
You are, of course, right.
Michael
|
|
|
Goto Forum:
Current Time: Sun Apr 13 22:37:16 GMT 2025
Total time taken to generate the page: 0.15859 seconds