title: how to insert new line into a cell in fpdf
body: <p>I have tried using Ln(), MultiCell() or Write(), but I always get weird problems. Like after the 1st row and 6th column, the loops breaks, and the entire layout falls back. </p>
  
  <pre><code>foreach($data as $row)
      {
      $room='-1010B';
      $labNo='(L1)';
      $this-&gt;SetFont('Arial','B',10);
      $this-&gt;Cell($w[0],15,$row[0],'LR',0,'C',$fill);
      $this-&gt;SetFont('Arial','',10);
      $this-&gt;Cell($w[1]+$w[2],15,$row[1]. " " .$room,'LR',0,'C',$fill);
      $this-&gt;Cell($w[3],15,$row[3]. " " .$room,'LR',0,'C',$fill);
      $this-&gt;Cell($w[4],15,$row[4]. " " .$room,'LR',0,'C',$fill);
      $this-&gt;SetFont('Arial','B',9);
      $this-&gt;Cell($w[5],15,$row[5],'LR',0,'C',$fill);
      $this-&gt;SetFont('Arial','',10);
      if($row[6]!="")
          $this-&gt;Cell($w[6],15,$row[6]. " " .$room,'LR',0,'C',$fill);
      else
          $this-&gt;Cell($w[6],15,$row[6],'LR',0,'C',$fill);
      $this-&gt;Cell($w[7]+$w[8]+$w[9],15,$row[7],'LR',0,'C',$fill);
     $flag++;
  
      $this-&gt;Ln();
  
  
      $fill =! $fill;
  
      }
  </code></pre>