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

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

WBOY
Release: 2016-06-13 13:27:37
Original
744 people have browsed it

[难]在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>
Copy after login
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>
Copy after login
Related labels:
source:php.cn
Statement of this Website
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
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template