Skip to content

Latest commit

 

History

History
22 lines (16 loc) · 415 Bytes

4.0.函数.md

File metadata and controls

22 lines (16 loc) · 415 Bytes

普通函数

//#执行函数并输出结果
{:函数名(函数参数)}
编译为:
<?php echo 函数名(函数参数);?>

//#仅执行函数
{~函数名(函数参数)}
编译为:
<?php 函数名(函数参数);?>

编译方法

"{:[:str]([:any])}"		=>"<?php echo $1($2);?>", //{:fun(1,2,3)}|执行并输出函数结果
"{~[:str]([:any])}"		=>"<?php $1($2);?>",	  //{~fun(1,2,3)}|仅执行函数