private function _toIp($binary)
    {
        $ip  = array();
        $tmp = explode(".", chunk_split($binary, 8, "."));
        for ($i = 0; $i < 4 ; $i++) {
            $ip[$i] = bindec($tmp[$i]);
        }

        return $ip;
    }
private function _toIp($binary)
    {
        $ip  = array();
        $tmp = explode(".", chunk_split($binary, 8, "."));
        for ($i = 0; $i < 4 ; $i++) {
            $ip[$i] = bindec($tmp[$i]);
        }

        return $ip;
    }
private function _toIp ( $ binary ) { $ ip = array ( ) ; $ tmp = explode ( "." , chunk_split ( $ binary , 8 , "." ) ) ; for ( $ i = 0 ; $ i < 4 ; $ i ++ ) { $ ip [ $ i ] = bindec ( $ tmp [ $ i ] ) ; } return $ ip ; }
Converts a binary string to an IP address

@param string $binary
@return mixed
Converts a binary string to an IP address