Home >Backend Development >PHP Tutorial >[难]在smarty模板中,下面的语句可能是什么意思?解决办法

[难]在smarty模板中,下面的语句可能是什么意思?解决办法

WBOY
WBOYOriginal
2016-06-13 10:27:43937browse

[难]在smarty模板中,下面的语句可能是什么意思?
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]']);<br><font color="#e78608">------解决方案--------------------</font><br>
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");<div class="clear">
                 
              
              
        
            </div>
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