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.