<?php
$name = ['lei','zhu','kong'];
?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Title</title>
</head>
<body>
<h2>名单</h2>
<ul>
<?php echo foreach ($name as $key =>$v):?>
<li><?php echo $v></li>
<?php endforeach;?>
</ul>
</body>
</html>