PHP-GTK Manual
This manual is provided as a courtesy. It is not an official source. Please check gtk.php.net for updated information.
set_max_length() sets the maximum number of characters that will be accepted in a text entry. Any further characters entered will not be displayed in the entry field, nor will they be capable of being retrieved with the get_text() function.