访问受保护的数组对象

时间:2016-04-26 14:56:41

标签: php arrays protected

如何使用非对象访问_connection :: protected

Mysql Object
(
    [description] => MySQL DBO Driver
    [_baseConfig:protected] => Array
        (
            [persistent] => 1
            [host] => localhost
            [login] => root
            [password] => 
            [database] => cake
            [port] => 3306
            [flags] => Array
                (
                )
        )

    [_connection:protected] => PDO Object
        (
        )
)

0 个答案:

没有答案