I have a very trivial problem with str_replace.
I have a string with the En Dash character ( - ) like this:
I want to remove - the dash
This was my solution for an invalid ndash:
$string = str_replace(chr(hexdec('3f')), '-', $string);