A[b].c[d].e
------解决方案--------------------
- PHP code
<?php$arr = array( 'A[a]'=>array('C[d]'=>array('e'=>'hello world')),);print_r($arr);print_r($arr['A[a]']);
------解决方案--------------------
- PHP code
$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");