public static function startsWithAny(string $searchString, array $prefixOptions, &$found = null): bool
    {
        foreach ($prefixOptions as $prefix) {
            if (self::startsWith($searchString, $prefix)) {
                $found = $prefix;
                return true;
            }
        }
        
        return false;
    }
public static function startsWithAny(string $searchString, array $prefixOptions, &$found = null): bool
    {
        foreach ($prefixOptions as $prefix) {
            if (self::startsWith($searchString, $prefix)) {
                $found = $prefix;
                return true;
            }
        }
        
        return false;
    }
public static function startsWithAny ( string $ searchString , array $ prefixOptions , & $ found = null ) : bool { foreach ( $ prefixOptions as $ prefix ) { if ( self :: startsWith ( $ searchString , $ prefix ) ) { $ found = $ prefix ; return true ; } } return false ; }
Check if a string starts with any of multiple prefixes.

@param string $searchString
The string to check.

@param array $prefixOptions
The prefix to find.

@return bool Whether the string starts with any of the prefixes.
Check if a string starts with any of multiple prefixes .