GtkTextBuffer::get_char_count

int get_char_count();

Returns the number of characters in a buffer. Remeber that because text in PHP-GTK 2 is UTF-8, the number of characters may not be the same as the number of bytes in the buffer.

Example 122. Using get_char_count()


<?php
// Make sure the PHP-GTK 2 extension is loaded.
if (!extension_loaded('php-gtk')) {
        dl( 'php_gtk2.' . PHP_SHLIB_SUFFIX);
}

// Still working on this one...