title: NL char when useing imagestring in php
body: <p>I was wondering if anyone knows how I could remove or replace these annoying N over L (I'm guessing means newline) from my php string before printing them to an image.</p>
  
  <p>the text looks like <a href="https://imgur.com/n9yCk.png" rel="nofollow noreferrer">this</a></p>
  
  <p>any help much appreciated as I have wasted hours on this little problem...</p>
  
  <pre><code>&lt;?php
  exec('/usr/games/fortune -s', $fortune);
  for($i = 0; $i &lt;= count($fortune); $i++) {
      $text = "$text $fortune[$i]";
  }
  $image = imagecreatefrompng("rex.png");
  $color = imagecolorallocate($image, 0, 0, 0);
  $newtext = wordwrap($text, 35, "\n", true);
  $newertext2 = explode  ("\n", $newtext);
  imagestring  ($image, 3, 0, 0, $newertext2[0], $color);
  imagestring  ($image, 3, 0, 11, $newertext2[1], $color);
  imagestring  ($image, 3, 0, 22, $newertext2[2], $color);
  imagestring  ($image, 3, 0, 33, $newertext2[3], $color);
  imagestring  ($image, 3, 0, 44, $newertext2[4], $color);
  imagestring  ($image, 3, 0, 55, $newertext2[5], $color);
  imagestring  ($image, 3, 0, 66, $newertext2[6], $color);
  imagestring  ($image, 3, 0, 77, $newertext2[7], $color);
  header("Content-type: image/png");
  imagepng($image);
  ?&gt;
  </code></pre>