Warning: file_put_contents(): Only -1 of 146 bytes written, possibly out of free disk space in /var/www/html/index.php on line 3

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 23

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 24

Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/index.php:3) in /var/www/html/cache.php on line 25
chr convert_cyr_string Strings PHP Manual chunk_split (PHP 4, 5) — Divide uma string em pequenos pedaços Descrição ( $body [, int $chunklen $end ]] ) Pode dividir que são úteis para ex. conv...
Forum und email

chunk_split

(PHP 4, PHP 5)

chunk_split — Divide uma string em pequenos pedaços

Descrição

string chunk_split ( string $body [, int $chunklen [, string $end ]] )

Pode dividir uma string em pequenos pedaços que são úteis para ex. converter a saída de base64_encode() para semânticas RFC 2045 . Ela insere end (padrão para "\r\n") cada caracater chunklen (padrão para 76). Ela retorna uma nova string deixando a string original intocada.

Example#1 chunk_split() exemplo

<?php
// format $data using RFC 2045 semantics
$new_string = chunk_split(base64_encode($data));
?>

Veja também str_split(), explode(), split(), wordwrap() e » RFC 2045.