title: FPDF height of a MultiCell Element
body: <p>I use the FPDF library to export some document files as PDF. One document includes a list of strings which have a different length. I print all strings as <code>$pdf-&gt;MultiCell()</code>. Now I would like to have the current height of that MultiCell to have the same line spacing in case that they have just one line or more. </p>
  
  <p>Code Example:</p>
  
  <pre><code>//MySQL Query
  while($row = mysql_fetch_array($res) {
     $pdf-&gt;SetXY(18, $x);
     $pdf-&gt;MultiCell(80, 5, $rowr['text']); //text has one or more lines
     $x = $x + 10; // Here I would prefer a solution to say: $x = $x + 2 + height of the MultiCell()
  }
  </code></pre>