Maison  >  Article  >  développement back-end  >  这句话里面有错误吗?

这句话里面有错误吗?

WBOY
WBOYoriginal
2016-06-06 20:18:011247parcourir

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

Déclaration:
Le contenu de cet article est volontairement contribué par les internautes et les droits d'auteur appartiennent à l'auteur original. Ce site n'assume aucune responsabilité légale correspondante. Si vous trouvez un contenu suspecté de plagiat ou de contrefaçon, veuillez contacter admin@php.cn