private static function explodeOnDelims(string $string): array
    {
        $string = preg_replace('/[^a-z0-9]+/i', '_', $string);
        $string = trim($string, '_');

        return explode('_', $string);
    }
private static function explodeOnDelims(string $string): array
    {
        $string = preg_replace('/[^a-z0-9]+/i', '_', $string);
        $string = trim($string, '_');

        return explode('_', $string);
    }
private static function explodeOnDelims ( string $ string ) : array { $ string = preg_replace ( '/[^a-z0-9]+/i' , '_' , $ string ) ; $ string = trim ( $ string , '_' ) ; return explode ( '_' , $ string ) ; }
Splits a string into a list on non-word breaks

@param string $string The input string

@return array
Splits a string into a list on non - word breaks