PHP chunk_split() Function
The chunk_split() function splits a string into a series of smaller parts.
Note: This function does not alter the original string.
Example
<?php
$str = "Hello world!";
echo chunk_split($str,1,".");
?>
Output
H.e.l.l.o. .w.o.r.l.d.!.
Leave a Reply