Hướng dẫn gettype in php
Ngày đăng:
20/09/2022
Trả lời:
0
Lượt xem:
1
(PHP 4, PHP 5, PHP 7) gettype() dùng để lấy kiểu dữ liệu của biến. Các giá trị trả về:
Ví dụ
= array(1, 1., NULL, new stdClass, 'foo'); Kết quả của ví dụ: integer double NULL object string (PHP 4, PHP 5, PHP 7, PHP 8) gettype — Get the type of a variable Descriptiongettype(mixed Parametersvalue The variable being type checked. Return ValuesPossible values for the returned string are:
Changelog
ExamplesExample #1 gettype() example
= array(1, 1., NULL, new stdClass, 'foo'); The above example will output something similar to: integer double NULL object string See Also
Anonymous ¶ 7 months ago
|