At 00:07 23.02.2001, Jacky@lilst said:
--------------------[snip]--------------------
>if ((isset($AgeChild))=="false") {
>$AgeChild = "NA";
--------------------[snip]-------------------- 

isset(): generally spoken, returns true if a variable is _defined_,
regardless of it's actual value:
    isset($myvar) => returns false
    empty($myvar) => returns true
    $myvar = "something";
    isset($myvar) => returns true
    empty($myvar) => returns false
    $myvar = "";
    isset($myvar) => returns true
    empty($myvar) => returns true
    unset($myvar);
    isset($myvar) => returns false
    empty($myvar) => returns true

My advice: avoid comparing to false or true (and since these are constants,
don't put them in quotes ;->).
    // bad way
    if (isset($myvar) == false)
    // better way
    if (!isset($myvar))


     ...ebird

   >O     Ernest E. Vogelsinger
   (\)    http://www.1-at-web.at/
    ^     ICQ#   13394035


-- 
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
To contact the list administrators, e-mail: [EMAIL PROTECTED]

Reply via email to