The Filter_var () function filters variables by the specified filter. If successful, returns the filtered data, or false if it fails. Syntax Filter_var (variable, filter, options) variable: required. Specifies the variables to filter. Filter: Optional. Specifies the ID of the filter to be used. (See the Filtersid list below) options: Specifies an array containing the flags/options. Check the possible flags and options for each filter. Copy the code code as follows: Filtersid Name: Description Filter_callback: Invokes the user-defined function to filter the data. Filter_sanitize_string: Remove tags, remove or encode special characters. Filter_sanitize_stripped: Alias of the "string" filter. Filter_sanitize_encoded:url-encode strings, removing or encoding special words
1. Recommended Articles for PHP filter_id () functions
Summary: the Filter_var () function filters variables by the specified filter. If successful, returns the filtered data, or false if it fails. Syntax Filter_var (variable, filter, options) variable: required. Specifies the variables to filter. Filter: Optional. Specifies the ID of the filter to be used. (See the Filtersid list below) options: Specifies an array containing the flags/options. Check each filter for possible flags and ...
2. Filterconfig PHP Filter_var function Filter function
Summary: Filterconfig:filterconfig PHP Filter_var function Filter function: the Filter_var () function filters variables by the specified filter. If successful, returns the filtered data, or false if it fails. Syntax Filter_var (variable, filter, options) variable: required. Specifies the variables to filter. Filter: Optional. Specifies the ID of the filter to be used. (See the Filtersid list below) options: Specifies an array containing the flags/options. Check that each filter may
3. Social Security Number PHP ID number verification function
Profile: ID Number: Social Security Number PHP ID number verification function: Copy code code as follows: function Validation_filter_id_card ($id _card) {if (strlen ($id _card) = =) {return id Card_checksum18 ($id _card); } ElseIf ((strlen ($id _card) = =) {$id _card = idcard_15to18 ($id _card); retur
4. PHP ID number verification function _php Tutorial
Introduction: PHP identification number verification function. Copy the code as follows: function Validation_filter_id_card ($id _card) {if (strlen ($id _card) = =) {return Idcard_checksum18 ($id _card ); } ElseIf ((strlen ($id _card) = =) {$id _
5. PHP Verify that the ID number is correct function
Summary: PHP verifies that the ID number is correct function, the function code is as follows: function Validation_filter_id_card ($id _card) {if (strlen ($id _card) ==18) {return idcard_ Checksum18 ($id _card);} ElseIf ((strlen ($id _card) ==15) {$id _card=idcard_15to18 ($id _card)
6. PHP Implementation ID authentication function
Introduction: Welcome to the Linux Community forum, interact with 2 million technical staff >> enter PHP to implement ID card validation function validation_filter_id_card ($id _card) {if (Strlen ($id _ Card) {return idcard_checksum18 ($id _card),}elseif ((strlen ($id _card) = =) {$i
"Related question and answer recommendation":
Django-python The handling of null values when sorting?