Home >php教程 >php手册 >thinkphp3.2Php代码和标签在模板文件中的混合使用

thinkphp3.2Php代码和标签在模板文件中的混合使用

WBOY
WBOYOriginal
2016-06-06 19:47:131390browse

phpeq name = 'name' value = 'value' value /eq/php eq php if( {$user} != 'ThinkPHP' ) echo 'ThinkPHP' ; /php {$user} php if( $user.name != 'ThinkPHP' ) echo 'ThinkPHP' ; /php $user.name 点语法变量输出 ,因此无效。 $vo['name']

<ol><li><code><span><php><eq><span>name</span><span>=</span><span>'name'</span><span>value</span><span>=</span><span>'value'</span><span>></span><span>value</span><span></span></eq></php></span></code></li></ol>

eq

<ol><li><code><span><php></php></span><span>if( {$user} != 'ThinkPHP' ) echo  'ThinkPHP' ;</span><span></span></code></li></ol>

{$user}

<ol><li><code><span><php></php></span><span>if( $user.name != 'ThinkPHP' ) echo  'ThinkPHP' ;</span><span></span></code></li></ol>

$user.name 点语法变量输出 ,因此无效。

$vo['name']

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