ホームページ  >  記事  >  バックエンド開発  >  这句话里面有错误吗?

这句话里面有错误吗?

WBOY
WBOYオリジナル
2016-06-06 20:18:011247ブラウズ

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 可以看看 巩固一下

声明:
この記事の内容はネチズンが自主的に寄稿したものであり、著作権は原著者に帰属します。このサイトは、それに相当する法的責任を負いません。盗作または侵害の疑いのあるコンテンツを見つけた場合は、admin@php.cn までご連絡ください。