<?php $a=array(1,2,0); foreach ($a as $v): if($v>1): ?> 5 <?php endif; endforeach; ?>
if,foreach,while,switch,declare都有这种特殊语法(冒号开头,分号结束).