array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'uk', ), 'this' => array ( 0 => 'function.filter-has-var.php', 1 => 'filter_has_var', 2 => 'Checks if a variable of the specified type exists', ), 'up' => array ( 0 => 'ref.filter.php', 1 => 'Функції Filter', ), 'prev' => array ( 0 => 'ref.filter.php', 1 => 'Функції Filter', ), 'next' => array ( 0 => 'function.filter-id.php', 1 => 'filter_id', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'en', 'path' => 'reference/filter/functions/filter-has-var.xml', ), 'history' => array ( ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); contributors($setup); ?>

filter_has_var

(PHP 5 >= 5.2.0, PHP 7, PHP 8)

filter_has_varChecks if a variable of the specified type exists

Опис

filter_has_var(int $input_type, string $var_name): bool

Параметри

input_type

One of INPUT_GET, INPUT_POST, INPUT_COOKIE, INPUT_SERVER, or INPUT_ENV.

var_name

Name of a variable to check.

Значення, що повертаються

Повертає true у разі успіху або false в разі помилки.