首页 > smarty遍历 多出一个元素,key值为count

smarty遍历 多出一个元素,key值为count

{foreach from =$order_list item=order key=okey}

{$okey}
{/foreach}

我的order_list数组只有15个元素,结果他遍历出来16个元素,前面15个元素的key为0-14,最后一个key为count,是什么问题?

输出的数组


。。。


自己 print_r() 看看 那个 order_list 的结构对不对。。。。

【热门文章】
【热门文章】