|
|||||||||
|
|||||||||
isset(PHP 4, PHP 5) isset — Determine whether a variable is set ОписаниеDetermine whether a variable is set. If a variable has been unset with unset(), it will no longer be set. isset() will return FALSE if testing a variable that has been set to NULL. Also note that a NULL byte ("\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 set. Evaluation goes from left to right and stops as soon as an unset variable is encountered. Список параметров
Возвращаемые значенияReturns TRUE if var exists; FALSE otherwise. Примеры
Пример #1 isset() Examples
<?phpThis also work for elements in arrays:
<?phpПримечанияВнимание
isset() only works with variables as passing anything else will result in a parse error. For checking if constants are set use the defined() function.
Смотрите также
| |||||||||
|
|||||||||