PHP eight basic data types
Four scalar types:
boolean (Boolean type)
integer (integer type)
float (floating point type, also called double)
string (string)
Two compound types:
array (array)
object
Finally there are two special types:
resource
NULL (NULL)
If you want to force a variable to a certain type, you can use cast or settype() function.
http://www.bkjia.com/PHPjc/1070925.htmlwww.bkjia.comtruehttp: //www.bkjia.com/PHPjc/1070925.htmlTechArticlePHP has eight basic data types and four scalar types: boolean (Boolean) integer (integer) float ( Floating point type, also called double) string (string) Two composite types:...
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