PHP function chunk_split()

Availability in PHP 4.0

Split a string into smaller chunks

Parameters

Parameter Data type Default value Note
$body string not The string to be chunked.
$chunklen int null, The chunk length.
$end string null The line ending sequence.

Return values

string

the chunked string.

Other resources

Official documentation of the chunk-split function

Newsletter

Nejlepsi tipy a triky o PHP do Vaseho e-mailu. Clanky a novinky nejen ze sveta PHP a programovani.