Home >Backend Development >PHP Tutorial > smarty 如何在模板上循环遍历输出三维数据?

smarty 如何在模板上循环遍历输出三维数据?

WBOY
WBOYOriginal
2016-06-13 12:39:48882browse

smarty 怎么在模板上循环遍历输出三维数据???
这个从php传过来的数组结构。

Array
(
    [0] => Array
        (
            [0] => Array
                (
                    [id] => 15
                    [pid] => 0-2-11
                    [name] => 女装
                    [href] => 
                    [date] => 
                )

            [1] => Array
                (
                    [id] => 18
                    [pid] => 0-2-11
                    [name] => 衬衣
                    [href] => 
                    [date] => 
                )

            [2] => Array
                (
                    [id] => 40
                    [pid] => 0-2-11
                    [name] => www
                    [href] => 

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn