Array (
[filename] => Array (
[0] => login.php
[1] => logout.php
[2] => processlogin.php
)
[suffix] => Array (
[0] => .php
[1] => .php
[2] => .php
[filesize] => Array (
[0] => 367
[1] => 322
[2] => 2348
上面的数组怎么循环输出?
格式:login.php .php 367为一条数据
你试试下面的是否可以,好久没用过smarty了
{foreach from=$array.filename key=k item=v} <p>{$v} {$array.suffix.$k} {$array.filesize.$k} <br></p> {/foreach}