public static function findEmails(string $text): array
	{
		$result = [];
		preg_match_all('/[a-z\d._%+-]+@[a-z\d.-]+\.[a-z]{2,4}\b/i', $text, $result);
		return isset($result[0]) ? $result[0] : [];
	}
public static function findEmails(string $text): array
	{
		$result = [];
		preg_match_all('/[a-z\d._%+-]+@[a-z\d.-]+\.[a-z]{2,4}\b/i', $text, $result);
		return isset($result[0]) ? $result[0] : [];
	}
public static function findEmails ( string $ text ) : array { $ result = [ ] ; preg_match_all ( '/[a-z\d._%+-]+@[a-z\d.-]+\.[a-z]{2,4}\b/i' , $ text , $ result ) ; return isset ( $ result [ 0 ] ) ? $ result [ 0 ] : [ ] ; }
Vrati email z textu
@param string $text
@return string[]
Vrati email z textu