public static function get($object, $key, $default = null)
    {
        if (!static::has($object, $key))
            return $default;

        if (static::isArray($object))
            return $object[$key];

        if (static::isObject($object))
            return $object->$key;

        return $object;
    }
public static function get($object, $key, $default = null)
    {
        if (!static::has($object, $key))
            return $default;

        if (static::isArray($object))
            return $object[$key];

        if (static::isObject($object))
            return $object->$key;

        return $object;
    }
public static function get ( $ object , $ key , $ default = null ) { if ( ! static :: has ( $ object , $ key ) ) return $ default ; if ( static :: isArray ( $ object ) ) return $ object [ $ key ] ; if ( static :: isObject ( $ object ) ) return $ object -> $ key ; return $ object ; }
Get the object's key value. If such keys doesn't exists, the default value is returned. If object is neither
Array nor an Object, the object itself is returned.

@category Object Functions

@param object,array $object the object
@param scalar $key the key
@param mixed $default optional, the default value to return in case the key doesn't exists

@return mixed
Get the object s key value . If such keys doesn t exists the default value is returned . If object is neither Array nor an Object the object itself is returned .