PHP chunk_split () Function
The php chunk_split function makes the desired mark at the end of the specified number of characters in a given sentence or word.
It takes 3 values. Sentence is the number of characters to be marked and the sign to be added.
For example, when you type an abbreviation, you can put punctuation between them WHO -> W.H.O. like.
$string= "learning php chunk_split function";
Note that if there is a space in your sentence, it will create a character in it and add the sign you want at the end after the split.You can get rid of gaps by using the trim function.