echo “<br/ >”;
echo chunk_split(“Learn PHP on PHPTUTORS”,12,”…”);
Learn PHP on… PHPTUTORS…
chunk_split() function splits a string into a series of smaller chunks and append a specified string after each chunk as shown in above script example.
chunk_split function parameters:
1- String: String which is going to be spit into chunks
2- Chunk Length: Length of chunk [default is 76]
3- String: String which is appended at the end of each chunk