src/Utility/Text.php
public static function numberOfChars($text, array $options = []) {
		$text = str_replace(["\r", "\n", "\t", ' '], '', $text);
		$count = mb_strlen($text);
		return $count;
	}
public static function numberOfChars($text, array $options = []) {
		$text = str_replace(["\r", "\n", "\t", ' '], '', $text);
		$count = mb_strlen($text);
		return $count;
	}
public static function numberOfChars ( $ text , array $ options = [ ] ) { $ text = str_replace ( [ "\r" , "\n" , "\t" , ' ' ] , '' , $ text ) ; $ count = mb_strlen ( $ text ) ; return $ count ; }
Count chars in a text.

Options:
- 'whitespace': If whitespace should be counted, as well, defaults to false

@param string $text
@param array $options
@return int
Count chars in a text .