| numeric() | ใช้ตรวจสอบว่าเป็น ข้อความ ตัวเลข, จุด หรือ ขีดกลาง หรือไม่ ( เว้นวรรคก็ไม่ได้ ) |
|---|
method:numeric ( text );
return type:boolean
special:static
content:ใช้ตรวจสอบว่าเป็น ข้อความ ตัวเลข, จุด หรือ ขีดกลาง หรือไม่ ( เว้นวรรคก็ไม่ได้ )
example:$my_numeric = "12.0"; if ( valid::numeric ( $my_numeric ) ) { echo "This is the numeric."; }