http_chunked_decode
(PECL)
http_chunked_decode -- Decode chunked-encoded data
Beschreibung
string
http_chunked_decode ( string encoded )
Decodes a string which is HTTP-chunked encoded.
Parameter Liste
encoded
chunked encoded string
Rückgabewerte
Returns the decoded string on success or FALSE on failure.
Beispiele
Beispiel 1. A http_chunked_decode() example
<?php $string = "". "05\r\n". "this \r\n". "07\r\n". "string \r\n". "12\r\n". "is chunked encoded\r\n". "01\n\r\n". "00"; echo http_chunked_decode($string); ?>
|
Das oben gezeigte Beispiel erzeugt folgende
Ausgabe: this string is chunked encoded |
|