php man page for chunk_split

Query: chunk_split

OS: php

Section: 3

Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar

CHUNK_SPLIT(3)								 1							    CHUNK_SPLIT(3)

chunk_split - Split a string into smaller chunks

SYNOPSIS
0]) string chunk_split (string $body, [int $chunklen = 76], [string $end = "
DESCRIPTION
Can be used to split a string into smaller chunks which is useful for e.g. converting base64_encode(3) output to match RFC 2045 semantics. It inserts $end every $chunklen characters.
PARAMETERS
o $body - The string to be chunked. o $chunklen - The chunk length. o $end - The line ending sequence.
RETURN VALUES
Returns the chunked string.
EXAMPLES
Example #1 chunk_split(3) example <?php // format $data using RFC 2045 semantics $new_string = chunk_split(base64_encode($data)); ?>
SEE ALSO
str_split(3), explode(3), split(3), wordwrap(3), RFC 2045. PHP Documentation Group CHUNK_SPLIT(3)
Related Man Pages
textutil_split(n) - osx
urldecode(3) - php
strtok(3) - php
explode(3) - php
split(3) - php
Similar Topics in the Unix Linux Community
Simple rules of the UNIX.COM forums:
Rules for Homework &amp; Coursework Questions Forum
New Code Tags (Syntax Highlighting)
Please Welcome Don Cragun as Lead Moderator
The Order of the Wizard's Hat - Lifetime Achievement Award 2019 - Congrats to Wolf Machowitsch