Heim  >  Artikel  >  Backend-Entwicklung  >  这句话里面有错误吗?

这句话里面有错误吗?

WBOY
WBOYOriginal
2016-06-06 20:18:011247Durchsuche

header("location:http://localhost/tieba3.php?title=.$v['title'].");

回复内容:

header("location:http://localhost/tieba3.php?title=.$v['title'].");

<code>header("location:http://localhost/tieba3.php?title=".$v['title']);
</code>

注意引号位置

header("location:http://localhost/tieba3.php?title=".$v['title']);

<code>header("location:http://localhost/tieba3.php?title={$v['title']}");

变量加花括号引用。</code>

http://php.net/manual/zh/language.types.string.php 可以看看 巩固一下

Stellungnahme:
Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn