assign a string variable to store the one data of the array....

解决方案 »

  1.   

    能具体点吗?我可以处理二维的,比如这样:
    php:arr[0]['a'] = 'hello';tpl
    {arr[0].a} {* 输出hello *}
    但是三维的我得不到,我这样做的:
    php:arr[0][1]['a'] = 'hello';tpl
    {arr[0][1].a} {* 没输出信息 *}
      

  2.   

    php:$arr[0][1]['a']
    smarty:$arr[0][1].asmarty访问数字下标用[],字母下标用.
      

  3.   

    php:$arr[0][1]['a'] = 'hello';tpl:{$arr[0][1].a} {* 没输出信息 *}我就是这样用的,出不来,郁闷了
      

  4.   

    开始smarty的debug看看$arr下面有没有这个值
      

  5.   

    谢谢,招到问题了,smarty的debug就是好!