isset
isset — Determine if a variable is declared and is different than null.Description
isset( mixed $var,Determine if a variable is considered set, this means if a variable is declared and is different than null.
mixed ...$vars ): bool
If a variable has been unset with the unset() function, it is no longer considered to be set.
isset() will return false when checking a variable that has been assigned to null. Also note that a null character ("\0") is not equivalent to the PHP null constant.
If multiple parameters are supplied then isset() will return true only if all of the parameters are considered set. Evaluation goes from left to right and stops as soon as an unset variable is encountered.
Parameters
var
The variable to check
vars
Further variables.
Return Values
Returns true if var exists and has any value other than null. false otherwise.More information about isset on official PHP documentation site
isset - Popular snippets
- PHP 8.0 / MySQL 5.7 isset
last run:
2021-11-28 19:38:40
24
isset - New snippets
-
PHP 8.0 / MySQL 5.7 isset
added at:
2021-02-23 02:30:27
24