Home > php教程 > php手册 > body text

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

WBOY
Release: 2016-06-06 19:47:13
Original
1380 people have browsed it

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>
Copy after login

eq

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

{$user}

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

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

$vo['name']

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 Recommendations
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template