<?php
$str = "cloud chen";
$str = str_replace(" ","&nbsp;",$str);
echo $str;
?>