PHP 中的函数 "HTTP_redirect"
和 "header location"
有什么区别?
什么时候必须使用函数 "HTTP_redirect"
?
什么时候必须使用函数“header location”
?
看那个: https://php.net/manual/en/function.http-redirect.php --> HTTP_redirect 手册 https://php.net/manual/en/function.header.php --> 函数头手册
最佳答案
http_redirect
基本上是一个辅助函数,通过允许您为 GET 数据传递一个数组,可以更轻松地使用 header location
。
关于php header 位置与 php_redirect,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14353130/