chunk_split()

It splits a string into smaller chunks

Example

<?php
echo chunk_split(“phpcode”,1,”.”);
?>

Output

p.h.p.c.o.d.e.

Share