From cc20ec52072cd8dca6e4e67fbf4d2379701faeb7 Mon Sep 17 00:00:00 2001 From: Paul Dragoonis Date: Tue, 12 Jul 2011 04:42:00 +0000 Subject: [PATCH] Updating the http_response_code function as it was just placeholder text before. Now you can set the response code using this function, this is now documented. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@313157 c90b9560-bf6c-de11-be94-00142212c4b1 --- .../network/functions/http-response-code.xml | 171 ++++++++++++------ 1 file changed, 113 insertions(+), 58 deletions(-) diff --git a/reference/network/functions/http-response-code.xml b/reference/network/functions/http-response-code.xml index b49090ecef..7d16bcbaf2 100644 --- a/reference/network/functions/http-response-code.xml +++ b/reference/network/functions/http-response-code.xml @@ -1,58 +1,113 @@ - - - - - - http_response_code - Returns the current HTTP response code - - - - &reftitle.description; - - boolhttp_response_code - - - - - - - &warn.undocumented.func; - - - - - &reftitle.parameters; - &no.function.parameters; - - - - &reftitle.returnvalues; - - &return.success; - - - - - - - + + + + + + http_response_code + Get or Set the HTTP response code + + + + &reftitle.description; + + inthttp_response_code + intresponse_code + + + If you pass no parameters then http_response_code will get the current status code. + If you pass a parameter it will set the response code. + + + + + + &reftitle.parameters; + + + + response_code + + + The optional response_code will set the response code. + + + + + +]]> + + + + + + + + + + + &reftitle.returnvalues; + + The current response code. By default the return value is int(200). + + + + + &reftitle.examples; + + + Examples using <function>headers_list</function> + + +]]> + + &example.outputs; + + + + + + &reftitle.seealso; + + + header + + + + + + + +