Blogger Information
Blog 2
fans 0
comment 0
visits 751
Related recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
0803作业
泽客
Original
367 people have browsed it

1. php变量的8种数据类型?

    php变量分为 8种数据类型   4个标量类型 :布尔型boolean 整型int 字符串string 浮点型float  2个复合类型:(数组,对象)  2个特殊类型(null,resource)


标量类型 :

布尔型boolean

$fool = tueo;

整型int

$arr = [1,2,3,4,'admin'];
echo '<pre>';
var_dump($arr);

字符串string

$info = ['apwr'=>'sdjsd','emall'=>'25131@qq.com','aeg'=>0];
var_dump($info);
//提取字符串 关键内容
echo $arr[3].'<br>';
echo $info['emall'];

浮点型float 

float = 11.11;
_ueditor_page_break_tag_

复合类型

数组




Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:
Statement of this Website
The copyright of this blog article belongs to the blogger. Please specify the address when reprinting! If there is any infringement or violation of the law, please contact admin@php.cn Report processing!
All comments Speak rationally on civilized internet, please comply with News Comment Service Agreement
0 comments
Author's latest blog post