downloads | documentation | faq | getting help | mailing lists | reporting bugs | php.net sites | links | my php.net 
search for in the  

<http_cache_last_modifiedhttp_deflate>
Last updated: Thu, 26 Jun 2008

http_chunked_decode

(PECL pecl_http:0.1.0-1.5.5)

http_chunked_decode — Decode chunked-encoded data

Description

string http_chunked_decode ( string $encoded )

Decodes a string which is HTTP-chunked encoded.

Parameters

encoded

chunked encoded string

Return Values

Returns the decoded string on success or FALSE on failure.

Examples

Example #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);
?>

The above example will output:

this string is chunked encoded



add a noteadd a note User Contributed Notes
Decode chunked-encoded data
There are no user contributed notes for this page.




<http_cache_last_modifiedhttp_deflate>
Last updated: Thu, 26 Jun 2008
show source | credits | sitemap | contact | advertising | mirror sites
Copyright © 2001-2005 The PHP Group
All rights reserved.
This unofficial mirror is operated at: http://phpbuilder.com/
Last updated: Tue Nov 1 20:20:59 2005 EST
Columns / Articles | Tips / Quickies | News | News Linking and RSS Feeds | Shared Code Library
Mail Archives | Support / Discussion Forums | Get Started! Links | Contribute! | Docs