string get_chars(int start_pos, int end_pos);

Retrieves a sequence of characters. The characters that are retrieved are those characters at positions from start_pos up to, but not including end_pos. If end_pos is negative, then the the characters retrieved will be those characters from start_pos o the end of the text.

Example 55. Retrieving all text

$text = $editable->get_chars(0, -1);