HTTP_CHUNKED_DECODE(3) 1 HTTP_CHUNKED_DECODE(3)
http_chunked_decode - Decode chunked-encoded data
SYNOPSIS
string http_chunked_decode (string $encoded)
DESCRIPTION
Decodes a string which is HTTP-chunked encoded.
PARAMETERS
o $encoded
- chunked encoded string
RETURN VALUES
Returns the decoded string on success or FALSE on failure.
EXAMPLES
Example #1
A http_chunked_decode(3) example
<?php
$string = "".
"05
".
"this
".
"07
".
"string
".
"12
".
"is chunked encoded
".
"01
".
"00";
echo http_chunked_decode($string);
?>
The above example will output:
this string is chunked encoded
PHP Documentation Group HTTP_CHUNKED_DECODE(3)