Home > Backend Development > PHP Tutorial > Detailed explanation of usage of eight PHP data types Advanced tutorial on PHP data type conversion

Detailed explanation of usage of eight PHP data types Advanced tutorial on PHP data type conversion

WBOY
Release: 2016-07-25 08:51:20
Original
1022 people have browsed it
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



source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template