/** * Print mult-iline cells * * @param $w * @param $h * @param $txt * @param int $border * @param string $align * @param bool|false $fill * @param int $ln Indicates where the current position should go after the * call. Possible values are: 0 - to the rigth. Default to 2 */ function MultiCell($w, $h, $txt, $border = 0, $align = 'J', $fill = false, $ln = 2) { if ($ln == 0) { $x = $this->GetX(); $y = $this->GetY(); parent::MultiCell($w, $h, $txt, $border, $align, $fill); $this->SetXY($x + $w, $y); } else { parent::MultiCell($w, $h, $txt, $border, $align, $fill); } }