public static function stringToArray(string $string): array
    {
        list($from, $to) = explode(self::SEPARATOR, $string);
        $from = empty($from)
            ? self::ZERO
            : (is_numeric($from)
                ? (int) $from
                : $from);

        $to = empty($to)
            ? self::INFINITE
            : (is_numeric($to)
                ? (int) $to
                : $to);

        return [$from, $to];
    }
public static function stringToArray(string $string): array
    {
        list($from, $to) = explode(self::SEPARATOR, $string);
        $from = empty($from)
            ? self::ZERO
            : (is_numeric($from)
                ? (int) $from
                : $from);

        $to = empty($to)
            ? self::INFINITE
            : (is_numeric($to)
                ? (int) $to
                : $to);

        return [$from, $to];
    }
public static function stringToArray ( string $ string ) : array { list ( $ from , $ to ) = explode ( self :: SEPARATOR , $ string ) ; $ from = empty ( $ from ) ? self :: ZERO : ( is_numeric ( $ from ) ? ( int ) $ from : $ from ) ; $ to = empty ( $ to ) ? self :: INFINITE : ( is_numeric ( $ to ) ? ( int ) $ to : $ to ) ; return [ $ from , $ to ] ; }
Get values given string.

@param string $string

@return array
Get values given string .