常用的php模板判断或循环标签
在网页模板上使用php标签进行判断或循环时,尽量使用end标签
if:
<?php if():?>
xxx
<?php endif;?>
for:
<?php for():?>
xxx
<?php endfor;?>
在网页模板上使用php标签进行判断或循环时,尽量使用end标签
if:
<?php if():?>
xxx
<?php endif;?>
for:
<?php for():?>
xxx
<?php endfor;?>