http_cache_last_modified
http_deflate
Funções para HTTP
PHP Manual

# http_chunked_decode

(PECL pecl_http:0.1.0-1.5.5)

http_chunked_decode — Decode chunked-encoded data

### Descrição

string http_chunked_decode ( string `$encoded` )

Decodes a string which is HTTP-chunked encoded.

### Parâmetros

`encoded`

  chunked encoded string

### Valor Retornado

Returns the decoded string on success or `FALSE` on failure.

### Exemplos

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

O exemplo acima irá imprimir:

    this string is chunked encoded

http_cache_last_modified
http_deflate
Funções para HTTP
PHP Manual