Online PHP Functions

Basic PHP Tools For Everyday Use

Description

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

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

Test Function