This example is a variant of the previous one showing how to lay the text across multiple columns.

class PDF extends FPDF
protected $col = 0; // Current column
protected $y0;      // Ordinate of column start

function Header()
    // Page header
    global $title;

    $w = $this->GetStringWidth($title)+6;
    // Save ordinate
    $this->y0 = $this->GetY();

function Footer()
    // Page footer
    $this->Cell(0,10,'Page '.$this->PageNo(),0,0,'C');

function SetCol($col)
    // Set position at a given column
    $this->col = $col;
    $x = 10+$col*65;

function AcceptPageBreak()
    // Method accepting or not automatic page break
        // Go to next column
        // Set ordinate to top
        // Keep on page
        return false;
        // Go back to first column
        // Page break
        return true;

function ChapterTitle($num, $label)
    // Title
    $this->Cell(0,6,"Chapter $num : $label",0,1,'L',true);
    // Save ordinate
    $this->y0 = $this->GetY();

function ChapterBody($file)
    // Read text file
    $txt = file_get_contents($file);
    // Font
    // Output text in a 6 cm width column
    // Mention
    $this->Cell(0,5,'(end of excerpt)');
    // Go back to first column

function PrintChapter($num, $title, $file)
    // Add chapter

$pdf = new PDF();
$title = '20000 Leagues Under the Seas';
$pdf->SetAuthor('Jules Verne');
$pdf->PrintChapter(1,'A RUNAWAY REEF','20k_c1.txt');
$pdf->PrintChapter(2,'THE PROS AND CONS','20k_c2.txt');


The key method used is AcceptPageBreak(). It allows to accept or not an automatic page break. By refusing it and altering the margin and current position, the desired column layout is achieved.
For the rest, not many changes; two properties have been added to the class to save the current column number and the position where columns begin, and the MultiCell() call specifies a 6 centimeter width.