首页 > 这句话里面有错误吗?

这句话里面有错误吗?

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


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

变量加花括号引用。

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

注意引号位置


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


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

【热门文章】
【热门文章】