Home >Backend Development >PHP Tutorial >Recommended articles about php filter_has_var() function
Definition and usage The filter_has_var() function checks if a variable of the specified input type exists. Returns TRUE or FALSE on success on failure. grammar filter_has_var(type, variable) type Required. Specify type checking for possible input types: INPUT_GET INPUT_POST INPUT_COOKIE INPUT_SERVER INPUT_ENV variable Required. Specify variable check For example In this example the input variable "name" is sent to the PHP page: The output is . Input type exists http://www.bkjia.com/PHPjc/445506.htmlwww.bkjia.comtruehtt
1. php filter_has_var function to determine whether a variable exists_PHP tutorial
Introduction: php filter_has_var determines whether a variable exists. Definition and Usage The filter_has_var() function checks if a variable of the specified input type exists. Returns TRUE or FALSE on success on failure. Syntax filter_has_var(type, variable)
2. PHP filter_var() function Filter function usage detailed explanation
Introduction: The filter function in php is a collective name for a function series, and the filter series of functions includes the filter_var function. The filter series of functions are part of the core of PHP. No installation is required to use these functions. It is mainly used for validating and filtering data from non-secure sources (such as user input). The filter_var() function here mainly filters variables through the specified filter. filter_has_var() checks whether a variable of the specified input type exists. fil
3. php filter_has_var determines whether a variable exists.
Introduction: php filter_has_var determines whether a variable exists. Definition and Usage The filter_has_var() function checks if a variable of the specified input type exists. Returns TRUE or FALSE on success on failure. Syntax filter_has_var(type, variable)
The above is the detailed content of Recommended articles about php filter_has_var() function. For more information, please follow other related articles on the PHP Chinese website!