<?php if ($a == 5): ?>
<div>等于5</div><?php elseif ($a == 6): ?> <div>等于5</div><?php else: ?> <div>不是5就是6</div><?php endif; ?>
<?php foreach ($todo as $item): ?>
<li><?=$item?></li><?php endforeach; ?>本文共 257 字,大约阅读时间需要 1 分钟。
<?php if ($a == 5): ?>
<div>等于5</div><?php elseif ($a == 6): ?> <div>等于5</div><?php else: ?> <div>不是5就是6</div><?php endif; ?>
<?php foreach ($todo as $item): ?>
<li><?=$item?></li><?php endforeach; ?>转载于:https://www.cnblogs.com/hechunhua/p/3413558.html