PHP:标头格式错误

| 有人可以解释这个PHP代码有什么问题吗? (PHP版本5.3.5)
<?php 
    header(\'Bad Request\', true, 400);
    exit;
我的状态是500,而不是400。在apache错误日志中,我得到了   脚本的标头格式错误。错误的标头=错误的请求:listener.php 我在这里做错了什么?我是否误解了文档?     
已邀请:
你必须写:
header(\'HTTP/1.0 400 Bad Request\', true, 400);
    

要回复问题请先登录注册