Home > Backend Development > PHP Tutorial > 这句话里面有错误吗?

这句话里面有错误吗?

WBOY
Release: 2016-06-06 20:18:01
Original
1291 people have browsed it

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

注意引号位置

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

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

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

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

Related labels:
php
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 Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template