function fixSpaces($spaces='')
	{
		$count = strlen($spaces);
		if($count == 0) {
			return '';
		}

		$div = floor($count / 2);
		$mod = $count % 2;
		return str_repeat('&nbsp; ', $div).str_repeat('&nbsp;', $mod);
	}
function fixSpaces($spaces='')
	{
		$count = strlen($spaces);
		if($count == 0) {
			return '';
		}

		$div = floor($count / 2);
		$mod = $count % 2;
		return str_repeat('&nbsp; ', $div).str_repeat('&nbsp;', $mod);
	}
function fixSpaces ( $ spaces = '' ) { $ count = strlen ( $ spaces ) ; if ( $ count == 0 ) { return '' ; } $ div = floor ( $ count / 2 ) ; $ mod = $ count % 2 ; return str_repeat ( '&nbsp; ' , $ div ) . str_repeat ( '&nbsp;' , $ mod ) ; }
Replace a string containing spaces with a HTML representation using &nbsp;.

@param string $spaces The string of spaces.
@return string The HTML representation of the string.
Replace a string containing spaces with a HTML representation using &nbsp ; .