PHP chunk_split() Function splits a string into a series of smaller parts.
Syntax :
chunk_split(string,length,separator)
Parameter,
Parameter | Description |
string | Required.Needs the string to split |
length | Optional.Specifies the length of the chunks. Default length is 76. Chunk length should be greater than zero. |
separator | Optional. Defines string to place at the end of each chunk. Default is space (\r\n). |
chunk_split() Function returns chunked string.
Let's see below example to understand php chunk_split() Function in details.
Comments