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:...