php程序如下
代码如下$aList["xx"]["house_sell"] = array("a","b","c");
smarty 模板中做法
补充其它办法
代码如下{if $array|@count neq 0 }
... ...
{/if}
或
{ if $array neq ""}
......
{/if}
或
注意:后面三种判断是不是数组我没有测试过哦,大家可测试一下吧
http://m.bbyears.com/jiaocheng/56460.html
推荐访问:smarty模板引擎 smarty教程 smarty模板