Output

As shown above.

Explanation

When you create a table with new GtkTable, it is not necessary to define the number of rows and columns. Tables are dynamic in PHP-GTK2, i.e. you can add any number of columns and rows on the fly in your program.

Too lazy to write a whole bunch of GtkTable::attach statements. So wrote a small function for this.