Home  >  Article  >  Backend Development  >  What are the PHP data type judgment functions_PHP tutorial

What are the PHP data type judgment functions_PHP tutorial

WBOY
WBOYOriginal
2016-07-21 16:12:47748browse

Copy code The code is as follows:

is_bool(), is_float(), is_int(), is_string(), is_object(), is_array () and is_integer().

Note that when judging

is_numeric() detects whether the variable is a number or a numeric string, it is different from is_integer()

www.bkjia.comtruehttp: //www.bkjia.com/PHPjc/313598.htmlTechArticleCopy the code code as follows: is_bool(), is_float(), is_int(), is_string(), is_object() , is_array() and is_integer(). Note that when judging is_numeric(), it detects whether the variable is a number or a number...
Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn