<?php

	$string = '99999999999999';
	
	for($i=strlen($string); $i>0; $i-=4) $string=substr_replace($string, ' ', $i, 0);
	
	echo $string;