Explain the purpose of isset() functions by illustrating an example. ~ Interview Questions & Answers

Wednesday, June 13, 2007

Explain the purpose of isset() functions by illustrating an example.

isset() function is used to determine if a variable is set or not. It returns true if the variable exists. If multiple parameters are supplied then isset() will return TRUE only if all of the parameters are set.
Example:
$a =”sample”;
var_dump(isset($a)); //true;

0 comments: