src/SubnetCalculator.php
private function ipAddressCalculation($format, $separator = '')
    {
        return implode($separator, array_map(
            function ($quad) use ($format) {
                return sprintf($format, $quad);
            },
            $this->quads
        ));
    }
private function ipAddressCalculation($format, $separator = '')
    {
        return implode($separator, array_map(
            function ($quad) use ($format) {
                return sprintf($format, $quad);
            },
            $this->quads
        ));
    }
private function ipAddressCalculation ( $ format , $ separator = '' ) { return implode ( $ separator , array_map ( function ( $ quad ) use ( $ format ) { return sprintf ( $ format , $ quad ) ; } , $ this -> quads ) ) ; }
Calculate IP address for formatting

@param string $format    sprintf format to determine if decimal, hex or binary
@param string $separator implode separator for formatting quads vs hex and binary

@return string formatted IP address
Calculate IP address for formatting