Set($data); // Merge all cellsn in the rectangle with // top left corner = (0,2) and bottom right = (1,3) $table->MergeCells(0,2,1,3); // Add the table to the graph $graph->Add($table); // ... and send back the table to the client $graph->Stroke(); ?>