My string contains '<' symbol.
Example:
$str = "S t a c k < o v e r f l o w";
when i use str_replace() as
$str = str_replace(' ', '', $str);
echo $str;
The output is:
Stack
All the letters after < are not printed.
where i am wrong? Please Help!