PHP
downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

http_deflate> <http_cache_last_modified
Last updated: Fri, 05 Sep 2008

view this page in

http_chunked_decode

(PECL pecl_http:0.1.0-1.5.5)

http_chunked_decodeDecode 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



add a note add a note User Contributed Notes
http_chunked_decode
There are no user contributed notes for this page.

http_deflate> <http_cache_last_modified
Last updated: Fri, 05 Sep 2008
 
 
show source | credits | sitemap | contact | advertising | mirror sites