日期:2014-05-17 浏览次数:20466 次
<?php
$arr = array(
'A[a]'=>array('C[d]'=>array('e'=>'hello world')),
);
print_r($arr);
print_r($arr['A[a]']);
$arr = array("a"=>array(1,2,3),"b"=>array("c"=>array("d"=>array("e"=>"Tom","f"=>"BeiJing"))));
$smarty->assign("A",$arr);
$smarty->display("testTwo.html");
<!--testTwo.html-->
{$A['b'].c['d'].e}
<!-- 输出Tom -->