<?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; ?>
<?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; ?>