This question already has an answer here:
I have a string:
$str = '
This Like a Somthing awesome text with
goods:Fb,Teleg,Top,Prods.fm,Ad-...
';
How I can remove spaces and line breaks? I want get this:
$str = 'This Like a Somthing awesome text with goods:Fb,Teleg,Top,Prods.fm,Ad-...';
A tried use:
trim($str);
But get same result.
</div>