Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
客户端(浏览器)<—->服务端server
是通过http(一种网络协议),一问一答的方式交互的。
<?php
$num=28;
$msg="message";
$boolean=true;
$tol=38.56;
var_dump($num);
var_dump($msg);
var_dump($boolean);
var_dump($tol);
echo "<hr>";
// 数组: 一维数组、多维数组
// 索引数组
$arr=["中国","日本","印度","朝鲜"];
var_dump($arr);
echo "<hr>";
// 关联数组
$arr=["id"=>1,"hero"=>"超人","power"=>"激光眼"];
var_dump($arr);
echo "<hr>";
// 多维数组
$heros=[
["id"=>1,"hero"=>"超人","power"=>"激光眼"],
["id"=>2,"hero"=>"闪电侠","power"=>"神速"],
["id"=>3,"hero"=>"雷神","power"=>"雷神之锤"],
];
var_dump($heros);
echo "<hr>";
// 对象
$obj=new stdClass;
var_dump($obj);