Correcting teacher:PHPz
Correction status:qualified
Teacher's comments:
<?php
$lists = [
['content' => '切实做好高风险岗位从业人员疫情防控。'],
['content' => '切实做好高风险岗位从业人员疫情防控。'],
['content' => '切实做好高风险岗位从业人员疫情防控。'],
['content' => '切实做好高风险岗位从业人员疫情防控。'],
['content' => '切实做好高风险岗位从业人员疫情防控。'],
['content' => '切实做好高风险岗位从业人员疫情防控。'],
['content' => '切实做好高风险岗位从业人员疫情防控。'],
['content' => '切实做好高风险岗位从业人员疫情防控。'],
['content' => '切实做好高风险岗位从业人员疫情防控。'],
['content' => '切实做好高风险岗位从业人员疫情防控。'],
['content' => '切实做好高风险岗位从业人员疫情防控。']
];
$list = '';
foreach ($lists as $k => $v) {
extract($v);
$list .= "<a href='' >{$content}</a><br> ";
}
echo $list;
$sting=’hello world’;
$num=98;
$fot=12.21;
$boo = ture;
(1)索引数组
$arr = [1,2,3,4,5,6,7,8];
(2)关联数组
$arr = [‘id’=>1, ‘uname’=>’张三’,’psw’=>’123456’]
class obj = { public $name;
public $id;
public $psw;
function login(){};
}
$pdo = new PDO(‘mysql:host=localhost;dbname=phpcn22’, ‘root’, ‘root’);
$abc = null;