Blogger Information
Blog 4
fans 0
comment 0
visits 2415
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
PHP运行原理与变量类型
远程
Original
325 people have browsed it

1.请图文详细总结你对php运行原理的理解?
PHP代码流:浏览器客户端->服务器->php解释器->数据访问操作
html代码流:浏览器客户端<-服务器<-php解释器<-数据访问操作

2.请代码演绎php的变量类型?
(1)整型:$int=1;
(2)字符:$sring=’abc’;
(3)布尔:$boolean=true;
(4)浮点$float=23.4;
(5)单数组:$arr = array(‘abc’,’123’, ‘46’);
(6)多维数组:
$arr = array(
array(
‘name’ => ‘张三’,
‘userId’ => ‘JK0001’
),
array(
‘name’ => ‘李四’,
‘userId’ => ‘JK0002’
));
(7)null类型:$var=null;

Correcting teacher:PHPzPHPz

Correction status:qualified

Teacher's comments:使用markdown语法
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