note 115513 deleted from function.http-response-code by mazzanet
| From: | mazzanet@php.net | Date: | Sun, 10 Aug 2014 09:17:06 +0000 |
| Subject: | note 115513 deleted from function.http-response-code by mazzanet | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-200157@lists.php.net to get a copy of this message | ||
Note Submitter: tom at r dot je
----
This works correctly when using header() to set, and http_response_code() to read.
For example:
<?php
header("HTTP/1.0 404 Not Found");
echo http_response_code(); // 404