thinkphp视图模板里面原始php的函数传递参数方法
thinkphp模板中无法给自定义函数传多个参数
{:function(param1,param2,param3...)}
2.实例代码 放在 html模板里面
<td>{:getzzzyk_com($id,$v['name'])}</td>
function getzzzyk_com($a,$b){
return $a.",".$b;
}
thinkphp模板中无法给自定义函数传多个参数
<td>{:getzzzyk_com($id,$v['name'])}</td>
上一个:Unparenthesized `a ? b : c ? d : e` is not supported. Use either `(a ? b : c) ? d : e`
下一个:php过一会儿自动刷新页面和跳转url