Add space after 7 characters - PHP Coding Help - PHP Freaks

PHOTO EMBED

Mon Feb 13 2023 03:07:57 GMT+0000 (Coordinated Universal Time)

Saved by @mvieira

$str = '012345678912';
echo substr($str, 0, 7) . ' ' . substr($str, 7);
content_copyCOPY

https://forums.phpfreaks.com/topic/251451-add-space-after-7-characters/