I need to check for sentences that have a space before the period and
remove the space. I've tried:
$sentence = str_replace(" .", ".", $sentence);
but it does not work. I've tried other ways with no success.
Why doesn't this work and how do I do this?
Thanks!
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Get freeware
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
remove the space. I've tried:
$sentence = str_replace(" .", ".", $sentence);
but it does not work. I've tried other ways with no success.
Why doesn't this work and how do I do this?
Thanks!
--
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Get freeware
-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
Comment