| credit_card() | ใช้ตรวจสอบว่าเป็นรูปแบบ credit_card ตามประเภทที่กำหนด หรือไม่ |
|---|
method:credit_card ( number, type );
return type:boolean
special:static
content:ใช้ตรวจสอบว่าเป็นรูปแบบ credit_card ตามประเภทที่กำหนด หรือไม่
example:$my_credit_card = "123456"; if ( valid::credit_card ( $my_credit_card ) ) { echo "This is the credit_card."; }
comment:ตัวแปร type ถ้าไม่กำหนด จะถือว่าเป็น credit_card ประเภทไหนก็ได้