| phone() | ใช้ตรวจสอบว่าเป็น หมายเลขโทรศัพท์ หรือไม่ |
|---|
method:phone ( phone, arr_length );
return type:boolean
special:static
content:ใช้ตรวจสอบว่าเป็น หมายเลขโทรศัพท์ หรือไม่
example:$my_phone = "086-708XXXX"; if ( valid::phone ( $my_phone ) ) { echo "This is the phone number."; }
comment:ตัวแปร arr_length ใช้กำหนดว่าจะให้เป็นกี่หลักได้บ้าง โดยค่า Default คือ array ( 7, 10, 11 )