ฟังก์ชัน is_scalar() check ตัวแปรเป็น scalar หรือไม่ด้วยฟังก์ชัน is_scalar() ฟังก์ชัน is_scalar () ใช้ check ว่า ตัวแปรเป็น integer, float,...


ฟังก์ชัน is_scalar() check ตัวแปรเป็น scalar หรือไม่ด้วยฟังก์ชัน is_scalar() ฟังก์ชัน is_scalar () ใช้ check ว่า ตัวแปรเป็น integer, float,...
ฟังก์ชัน is_numeric() check ตัวแปรว่าเป็นตัวเลขหรือสตริงตัวเลข หรือไม่ด้วยฟังก์ชัน is_numeric () ตัวอย่าง <?php $a="1000"; $b=...
ฟังก์ชัน is_object() check ตัวแปรว่าเป็น object หรือไม่ด้วยฟังก์ชัน is_object() ตัวอย่าง <?php class test { var $i; } $obj = new test; if...
ฟังก์ชัน is_null() check ตัวแปรว่าเป็น NULL หรือไม่ด้วยฟังก์ชัน is_null() ตัวอย่าง <?php $a=NULL; $b= is_null ($a); if ($b) echo "va...
ฟังก์ชัน is_integer() check ตัวแปรว่าเป็น integer หรือไม่ด้วยฟังก์ชัน is_integer() ฟังก์ชัน is_integer () เป็น alias ของ is_int() ตัวอย่าง...
ฟังก์ชัน is_long() check ตัวแปรว่าเป็น integer หรือไม่ด้วยฟังก์ชัน is_long() ฟังก์ชัน is_long () เป็น alias ของ is_int() ตัวอย่าง <?php...
ฟังก์ชัน is_int() check ตัวแปรว่าเป็น integer หรือไม่ด้วยฟังก์ชัน is_int() ตัวอย่าง <?php $a=11; $b= is_int ($a); if ($b) echo "vari...
ฟังก์ชัน is_double() check ตัวแปรว่าเป็น ตัวแปรทศนิยมหรือไม่ด้วยฟังก์ชัน is_double() ฟังก์ชัน is_double() เป็น alias ของ is_float() ตัวอย่า...
ฟังก์ชัน is_real() check ตัวแปรว่าเป็น ตัวแปรทศนิยมหรือไม่ด้วยฟังก์ชัน is_real() ฟังก์ชัน is_real() เป็น alias ของ is_float() ตัวอย่าง <...
ฟังก์ชัน is_bool() check ตัวแปรว่าเป็น boolean หรือไม่ด้วยฟังก์ชัน is_bool() ตัวอย่าง <?php $a=true; $b= is_bool ($a); if ($b) echo ...
ฟังก์ชัน is_float() check ตัวแปรว่าเป็น ตัวแปรทศนิยมหรือไม่ด้วยฟังก์ชัน is_float() ตัวอย่าง <?php $a=11.03; $b= is_float ($a); if ($b) ec...
ฟังก์ชัน is_string() check ตัวแปรว่าเป็น string หรือไม่ด้วยฟังก์ชัน is_string() ตัวอย่าง <?php $str="test string"; if ( is_str...
ฟังก์ชัน is_array() check ตัวแปรว่าเป็น array หรือไม่ด้วยฟังก์ชัน is_array() ตัวอย่าง <?php $a=array(); $b= is_array ($a); if ($b) echo ...
รู้ type ของตัวแปรด้วยฟังก์ชัน gettype() รู้ type ของตัวแปรด้วยฟังก์ชัน gettype() ฟังก์ชัน gettype() จะ return ชนิดของตัวแปรกลับมา type ที่เ...
การกำหนดชนิด type ด้วยฟังก์ชัน settype() การกำหนดชนิด type ด้วยฟังก์ชัน settype() ฟังก์ชัน settype() ใช้กำหนดชนิดของตัวแปร type ที่เป็นไปได้...