| gettype() | ใช้คืนค่าชนิดข้อมูลของตัวแปร |
|---|
function:gettype ( varname );
return type:string
content:ใช้คืนค่าชนิดข้อมูลของตัวแปร
example:$num = 1.2e3; echo gettype ( $num );
comment:ชนิดตัวแปรที่เป็นไปได้ของ php ได้แก่ real, float, boolean, integer, double, string, array, object, resource, null, user function, unknown type