[英]Need a Help PHP Coding
Here is The PHP Script 这是PHP脚本
<h1><?php if(isset($this->movie['title'])): echo $this->movie['title']; endif;?></h1>
It Show Only vs Title 只显示标题
I want to Add other Words Before Title So i try This 我想在标题之前添加其他单词,所以我尝试这个
<h1><?php if(isset($this->movie['title'])): echo Watch $this->movie['title']; endif;?></h1>
But Not Working Can any One Please Tell me the Solution of This 但任何人都无法正常工作,请告诉我解决方案
一个小的语法更正,尝试这个
<h1><?php if(isset($this->movie['title'])): echo "Watch". $this->movie['title']; endif;?></h1>
You used wrong syntax. 您使用了错误的语法。 Use this
用这个
<h1><?php
if(isset($this->movie['title']))
echo "Watch " . $this->movie['title'];?></h1>
You forgot to add quotes in WATCH 您忘了在WATCH中添加引号
<h1><?php
if(isset($this->movie['title']))
echo "Watch". $this->movie['title']; endif;?>
</h1>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.