首页 > 代码库 > 基本语法1

基本语法1

PHP支持8大原始数据类型

        四种标量类型:

                                boolean(布尔类型)

                                integer(整型) 

                                float(浮点型)

                                string(字符串) 

        两种复合类型:

                                数组(array) 

                                对象(object)

        两种特殊类型:

                                resource(资源)

                                NULL(无类型)

基本语法1