filter_id function definition and Usage summary

Source: Internet
Author: User
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?

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.