11.其他

条件判断

编译方法

$tags_other=array(
    "{echo [:nonempty]}"    =>"<?php echo $1;?>",    //{echo "123".$abc}
    "{php}"                 =>"<?php ",
    "{/php}"                =>"?>",
);

案例

{echo '123'}    <?php echo '123';?>
{echo 123}      <?php echo 123;?>
{echo "123".$abc}   <?php echo "123".$abc;?>

//
{php}$a=1;{/php}    <?php $a=1;?>