Source of: /ch13/example.13-7.php
<?php
  
require "class.ezpdf.php";
  
$doc =& new Cezpdf();
  
$table = array(
    array(
"Col A" => "Row 1, Col A data""Col B" => "Row 1, Col B data"),
    array(
"Col A" => "Row 2, Col A data""Col B" => "Row 2, Col B data")
  );
  
$columns = array("Col B" => "Column B""Col A" => "Column A");
  
$options = array('cols' =>
    array(
'Col A' => array('width'=>100'justification' => 'center'),
          
'Col B' => array('width'=>50'justification' => 'right')
         )
    );
  
$doc->ezTable($table$columns"The Table with Columns!"$options);
  
$doc->ezStream();
?>