Home > Backend Development > PHP Tutorial > PHP eight basic data types_PHP tutorial

PHP eight basic data types_PHP tutorial

WBOY
Release: 2016-07-12 09:05:02
Original
1002 people have browsed it

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.

www.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:...
Related labels:
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