To create a widget, use &new operator instead of
new. Some widgets take constructor parameters to initialize
themselves with.
<?php $vbox =& new GtkVBox(false, 5); ?>
Some widgets may be created by factories or other static methods:
<?php list($pixmap, $mask) = gdk::pixmap_create_from_xpm(...); ?>
To destroy a widget, call its destroy() method. This is rarely used because all
widgets are destroyed automatically upon the application's exit.
Note that simply unsetting the widget variable will not work in PHP 4 due to
Zend Engine limitations.