<?php
header('Content-Type: text/html; charset=utf-8');

//字串包含 3 個連續空白
$string='旗   標   出   版   公   司';
echo '未處理空白: ' . $string;

$string = str_replace('  ', '&nbsp;&nbsp;', $string);
echo '<br />已處理空白: ' . $string;
?>
