Lines Matching refs:text
19 * Generate a text with a max length of $length
162 * @param $text
165 public static function getWordCount($text)
170 $text = preg_replace("/^---(json)?$.*^---$/Ums", "", $text);
174 $text = str_replace("<", "\n<", $text);
175 $text = str_replace(">", ">\n", $text);
181 $preg_split = preg_split($wordSeparator, $text);
198 * @param $text
201 public static function isWord($text)
203 if (empty($text)) {
214 $preg_match = preg_match("/^[\w\-'\]\[,]*$/u", $text);