The usage of eight commonly used data types in PHP, including Boolean types, integer types, array types, etc., introduces the usage of these data types from the names, expression methods and value ranges of PHP data types.
What are the data types in php? Data types in php 8: Type name Type representation Value bool Boolean true,false integer integer type -2147483647-2147483648 string string type The length of the string depends on the machine memory float floating point type maximum value 1.8e308 object object is instantiated through new $obj=new person(); Array array type $arr=array(1,2,3,4,5,6);//One-dimensional array resources null null |