(PECL haru >= 0.0.1)
Get the total width of the text, number of characters, number of words and number of spaces
array HaruFont::getTextWidth ( string $text )
Get the total width of the text, number of characters, number of words and number of spaces.
Parameters:
text
The text to measure.
Returns:
Returns the total width of the text, number of characters, number of words and number of spaces in the given text.
Exception:
Throws a HaruException on error.
Please login to continue.