http_response_code()
function http_response_code(int $response_code = 0): int
Gets or sets the HTTP response code.
Parameters:
$response_code(int), default0, optional
Returns: int
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/time/http_response_code.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how http_response_code is implemented in the compiler, see the internals page.