Menu Samaritan's Purse

CHUNK_SPLIT

Split a string into smaller chunks

SYNTAX

chunk_split ( string $body [, int $chunklen = 76 [, string $end = "\r\n" ]] ) : string

PARAMETERS

body

The string to be chunked.

chunklen

The chunk length.

end

The line ending sequence.

RETURN

Returns the chunked string.

EXAMPLES

BODY

12345

CHUNKLEN

12
34
5

END

12,34,5,

BASE64_ENCODE

ZW5jb2RlZCBzdHJpbmc=

PHP