PHP » GoLang |
login |
register |
about
|
GoLang http_response_code
request it (437)
GoLang replacement for PHP's http_response_code
[edit | history]
http_response_code(PHP 5 >= 5.4.0, PHP 7) http_response_code — Get or Set the HTTP response code DescriptionGets or sets the HTTP response status code. Parameters
Return Values
If
Examples
Example #1 Using http_response_code() in a web server environment
<?php The above example will output: int(200) int(404) Example #2 Using http_response_code() in a CLI environment
<?php The above example will output: bool(false) bool(true) int(201) See Also
|
more
Recently updated
more
Most requested
more
Last requests
|