public static function at($string, $index)
    {
        if (self::length($string) >= ($index + 1)) {
            return $string[$index];
        }

        exception(StringOutIndexException::class);
    }
public static function at($string, $index)
    {
        if (self::length($string) >= ($index + 1)) {
            return $string[$index];
        }

        exception(StringOutIndexException::class);
    }
public static function at ( $ string , $ index ) { if ( self :: length ( $ string ) >= ( $ index + 1 ) ) { return $ string [ $ index ] ; } exception ( StringOutIndexException :: class ) ; }
Get the char at an index from a given string.

@param string $string
@param int    $index

@return string | bool
Get the char at an index from a given string .