title: Can I use trim() with imagettftext() in php?
body: <p>I need to line break in png file witch create by php function : imagettftext(); 
  it work good for me but i need to line break like:</p>
  
  <pre><code>    $arrText=explode("\n",wordwrap($text,20,"\n"));
  
      $y=5; //vertical position of text
      foreach($arrText as $arr)
      {
          imagestring($image,10,15,$y,trim($arr),$white);
        $y=$y+15;
      }
  </code></pre>
  
  <p>but i can't use my custom font with imagestring().</p>
  
  <p>what the best solution?</p>