function:intval ( varname );return type:intcontent:ใช้แปลง ตัวแปรที่กำหนด ให้เป็น intexample:$num = intval ( pi() ); echo gettype ( $num );