strpos($haystack, $needle, $offset); } public static function substr($string, $start, $length = null) { return self::$engine->substr($string, $start, $length); } public static function strlen($string) { return self::$engine->strlen($string); } } Str::getInstance();