• Determine variable existence

      0 comments

    What is the best way to determine if a variable is exiting or not?

    isset($x) can be used. But if it’s defined like this
    $x=NULL
    The answer will be false even if the variable is completely valid.