Can be used to split a string into smaller chunks which is useful for e.g. converting base64_encode() output to match RFC 2045 semantics. chunk_split() inserts $end every $chunklen characters in $body.

declaration of chunk_split

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

test chunk_split online

share chunk_split

comments for chunk_split

be the first

No comments so far for chunk_split(). Leave yours as first below.


Leave your comment