PHP implementation according to bank card number judgment Bank, PHP Bank card Judge Bank _php tutorial

Source: Internet
Author: User
Tags php download

PHP implementation according to bank card number judgment Bank, PHP bank card Judge Bank


banklist.php please download at the end of the article

Header (' Content-type:text/html;charset=utf-8 '); Require_once (' banklist.php '); function Bankinfo ($card, $bankList) {   $card _8 = substr ($card, 0, 8);   if (Isset ($bankList [$card _8]) {     echo $bankList [$card _8];     return;   }   $card _6 = substr ($card, 0, 6);   if (Isset ($bankList [$card _6]) {     echo $bankList [$card _6];     return;   }   $card _5 = substr ($card, 0, 5);   if (Isset ($bankList [$card _5]) {     echo $bankList [$card _5];     return;   }   $card _4 = substr ($card, 0, 4);   if (Isset ($bankList [$card _4]) {     echo $bankList [$card _4];     return;   }   Echo ' This card number information is not entered '; }  

banklist.php Download

The above mentioned is the whole content of this article, I hope you can like.

http://www.bkjia.com/PHPjc/992548.html www.bkjia.com true http://www.bkjia.com/PHPjc/992548.html techarticle PHP Implementation According to the bank card number judgment Bank, PHP Bank card Judge Bank banklist.php please download the header (' Content-type:text/html;charset=utf-8 ') at the end of the article; Require_once ( ' banklist.php ') ...

  • 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.