<?php>
定义一个变量:&num = 10;
输出变量:echo %num;
定义数组:
$arr = array(1,3,5);
打印数组:
print_r($arr);
echo $arr[1];
定义一个对象:
$dict = array("name" => "李连杰","age"=>"33");
打印:
print_r($dict);
echo $dict["name"];
分值循环语句
$age = 18;
if($age>=18){
echo "成年人";
}else{
echo "未成年人";
}