| alpha_numeric() | ใช้ตรวจสอบว่าเป็น ข้อความตัวอักษรหรือตัวเลข หรือไม่ ( เว้นวรรคก็ไม่ได้ ) |
|---|
method:alpha_numeric ( text, utf8 );
return type:boolean
special:static
content:ใช้ตรวจสอบว่าเป็น ข้อความตัวอักษรหรือตัวเลข หรือไม่ ( เว้นวรรคก็ไม่ได้ )
example:$my_alpha_numeric = "programming 2.0"; if ( valid::alpha_numeric ( $my_alpha_numeric ) ) { echo "This is the alpha - numeric."; }
comment:ตัวแปร utf8 ใช้กำหนดว่าจะตรวจสอบชนิด utf8 ( true )