I want to add a space to some output after every 4th character until the end of the string. I tried:
$str = $rows[\'value\']; echo substr($str, 0, 4) . \'
Have you already seen this function called wordwrap? http://us2.php.net/manual/en/function.wordwrap.php
Here is a solution. Works right out of the box like this.