1
0
mirror of https://github.com/php/php-src.git synced 2026-03-26 09:12:14 +01:00
Files
archived-php-src/ext/standard/tests/general_functions/http_response_code.phpt
2018-07-15 23:51:16 -03:00

20 lines
363 B
PHP

--TEST--
Test http_response_code basic functionality
--CREDITS--
Gabriel Caruso (carusogabriel@php.net)
--FILE--
<?php
var_dump(
// Get the current default response code
http_response_code(),
// Set a response code
http_response_code(201),
// Get the new response code
http_response_code()
);
?>
--EXPECT--
bool(false)
bool(true)
int(201)