Why doesn't this work? I must be missing something
////////////////////Begin Snippet
$string = "this string needs all the line breaks removed
as you can see there is a line break I want to remove it";
I want to remove the line breaks with the following function however it is not working
$newsparsed=str_replace("%\n%", "", $string );
//////////////////////End Snippet
this is the result I need
$string = "this string needs all the line breaks removed as you can see there is a line break I want to remove it";
Thanks