Home > PHP > Function > > HaruFont::getTextWidth()

HaruFont::getTextWidth()

HaruFont::getTextWidth - Get the total width of the text, number of characters, number of words and number of spaces

Syntax

array HaruFont::getTextWidth (string $text)

Arguments

  • text - The text to measure.

Description

Get the total width of the text, number of characters, number of words and number of spaces.

Version

PHP PECL haru >= 0.0.1

Return value

Returns the total width of the text, number of characters, number of words and number of spaces in the given text.