how to replace the all the occurence using php
<p>hi how to replace the all the occurrence of the spaces into <code>&amp;nbsp;</code>, I am tying to save my message from editor to my db , while i retrieving the message it shows �� instead of spaces please guide me</p>
