ARRAY1:
[test1] => Array
(
[inside1] => Array
(
[0] => 1
[1] => 2
[2] => 3
)
[inside2] => Array
(
[0] => 1
[1] => 2
[2] => 3
)
)
我想在smarty中直接访问 inside2 的值,而不使用循环。
答案 0 :(得分:1)
这应该有效
hello {$varname.test1.inside2[0]}