English [tʃʌŋk] US [tʃʌŋk]

n. A thick piece; (something) a considerable amount or part; a strong, strong horse

Plural: chunks

php chunk_split() function syntax

Function:Split the string into a series of smaller parts.

Syntax:chunk_split(string,length,end)

##Parameters:

Parameters Description string Required. Specifies the string to be split. length Optional. Numeric value that defines the length of the string block. The default is 76. end Optional. A string value that defines what to place at the end of each string block. The default is \r\n.

Description:chunk_split() function splits a string into a series of smaller parts. This function does not change the original string.

php chunk_split() function example


Run instance»

Click the "Run instance" button to view the online instance

Output:

Hel...lo ...php....cn...!...



Run Instance»

Click the "Run Instance" button to view the online instance

Output:

Lear***ning*** PHP*** is ***a go***od c***hoic***e!***