public static function ip()
    {
        if (!self::isDebug()) {
            return false;
        }

        $ip = self::getClientIP();

        $data = array(
            'ip'        => $ip,
            'host'      => gethostbyaddr($ip),
            'source'    => '$_SERVER["' . self::getClientIP(true) . '"]',
            'inet_pton' => inet_pton($ip),
            'ip2long'   => ip2long($ip),
        );

        return self::i()->dump($data, '! my IP = ' . $ip . ' !');
    }
public static function ip()
    {
        if (!self::isDebug()) {
            return false;
        }

        $ip = self::getClientIP();

        $data = array(
            'ip'        => $ip,
            'host'      => gethostbyaddr($ip),
            'source'    => '$_SERVER["' . self::getClientIP(true) . '"]',
            'inet_pton' => inet_pton($ip),
            'ip2long'   => ip2long($ip),
        );

        return self::i()->dump($data, '! my IP = ' . $ip . ' !');
    }
public static function ip ( ) { if ( ! self :: isDebug ( ) ) { return false ; } $ ip = self :: getClientIP ( ) ; $ data = array ( 'ip' => $ ip , 'host' => gethostbyaddr ( $ ip ) , 'source' => '$_SERVER["' . self :: getClientIP ( true ) . '"]' , 'inet_pton' => inet_pton ( $ ip ) , 'ip2long' => ip2long ( $ ip ) , ) ; return self :: i ( ) -> dump ( $ data , '! my IP = ' . $ ip . ' !' ) ; }
Show client IP
@return  JBDump
Show client IP