title: Remove line breaks and white spaces php
body: <p>I have a string:</p>
  
  <pre><code>$str = '
              This Like a Somthing awesome text with 
     goods:Fb,Teleg,Top,Prods.fm,Ad-...
  ';
  </code></pre>
  
  <p>How I can remove spaces and line breaks? I want get this:</p>
  
  <pre><code>$str = 'This Like a Somthing awesome text with goods:Fb,Teleg,Top,Prods.fm,Ad-...';
  </code></pre>
  
  <p>A tried use:</p>
  
  <pre><code>trim($str);
  </code></pre>
  
  <p>But get same result.</p>