protected function ipv4For($country)
    {
        $country = self::toUpper($country);

        if (!isset(self::$ipv4Ranges[$country])) {
            return '';
        }

        return static::randomElement(self::$ipv4Ranges[$country]) . mt_rand(1, 254);
    }
protected function ipv4For($country)
    {
        $country = self::toUpper($country);

        if (!isset(self::$ipv4Ranges[$country])) {
            return '';
        }

        return static::randomElement(self::$ipv4Ranges[$country]) . mt_rand(1, 254);
    }
protected function ipv4For ( $ country ) { $ country = self :: toUpper ( $ country ) ; if ( ! isset ( self :: $ ipv4Ranges [ $ country ] ) ) { return '' ; } return static :: randomElement ( self :: $ ipv4Ranges [ $ country ] ) . mt_rand ( 1 , 254 ) ; }
Generate an IPv4 for country

@param string $country

@return string
Generate an IPv4 for country