有事没事来多放点。多放点就越来越专业。

smarty里判断一个传入的数组是否为空

上一篇 / 下一篇  2008-01-23 10:38:05 / 个人分类:smarty

{* if $answers|@count eq 0 *}<font color="#990066">empty

yet</font>{*/if*}

{* if $vols eq ''*}

$answers & $vols都是数组


TAG: smarty

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

数据统计

  • 访问量: 48291
  • 日志数: 283
  • 图片数: 1
  • 建立时间: 2007-09-07
  • 更新时间: 2008-04-16

RSS订阅

Open Toolbar