title: how to create PDF a fpdf using using PHP arrays
body: <p>I trying to create PDF using FPDF by PHP. Here is my code.</p>
  
  <pre><code>require 'fpdf.php';
  $pdf= new FPDF();
  $pdf-&gt;AddPage();
  $pdf-&gt;SetFont('Arial', "", 18);
  $pdf-&gt;Ln();
  $fruits=["apple", "Strawberry", "Banana"];
  $animals=['Lion', 'Camel', 'Dog'];
  $numbers=[1,2,3];
  
  $i=0;
  while($i&lt;count($array))
  {
      $pdf-&gt;Cell(5, 5, $fruits[$i]);
  
      $pdf-&gt;Cell(35, 35, $animals[$i]);
  $pdf-&gt;Cell(35, 35, $numbers[$i]);
      $i++;
  }
  $pdf-&gt;output();
  </code></pre>
  
  <p>I am getting the output in this way</p>
  
  <pre><code>apple Strawberry Banana
  Lion Camel Dog
  1    2    3
  </code></pre>
  
  <p>But I am looking the output like with table format. I Have tried multiple ways using html tags like <br/>, and regex '\r\n'. But I didn't get output. I am getting the output in the above format only. </p>
  
  <pre><code>apple         Lion   1
  Strawberry    Camel  2
  Banana        Dog    3
  </code></pre>
  
  <p>Thanks in advance and welcome with all new ideas.
  Thanks You</p>