PHP isset() Function is used to check whether the variable is set or declared. Also checks a variable is empty. PHP isset() function is PHP built-in function.
PHP isset() Function checks variable is not NULL. PHP isset() Function also checks variable is set or not.
Syntax for isset:
isset(mixed $var, ....);
$var : Required. It specifies the variable to check.
.... : Optional. Pass Multiple variable.
Return Values for isset :
PHP isset() function returns true if the variable exists and is not NULL, otherwise it returns false.
If multiple variables are passed, then this function will return true only if all of the variables are set.
Let's see below example to understand php isset() Function in details.
Leave a Reply
Your email address will not be published. Required fields are marked *