Answers for "add space after 7 characters of string"

0

add space after 7 characters of string

$str = '012345678912';
echo substr($str, 0, 7) . ' ' . substr($str, 7);
Posted by: Guest on August-25-2021

Code answers related to "add space after 7 characters of string"

Browse Popular Code Answers by Language