php如何访问对象的孩子?如果用var_dump($GLOBALS['dsql']),结果如下:
object(DedeSql)#1 (11) {
["linkID"]=>
resource(7) of type (mysql link)
["dbHost"]=>
string(9) "localhost"
["dbUser"]=>
string(4) "root"
["dbPwd"]=>
string(3) "123"
["dbName"]=>
string(5) "ddleb"
["dbPrefix"]=>
string(5) "dede_"
["result"]=>
array(3) {
["me"]=>
int(0)
["one"]=>
resource(18) of type (Unknown)
["al"]=>
resource(25) of type (mysql result)
}
["queryString"]=>
string(301) "Select arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,tp.namerule,
tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath
from `dede_archives` arc left join `dede_arctype` tp on arc.typeid=tp.id
where arc.arcrank > -1 order by arc.sortrank desc limit 0,1 "
["parameters"]=>
array(0) {
}
["isClose"]=>
bool(false)
["safeCheck"]=>
bool(true)
}
<br>
object(DedeSql)#1 (11) {
["linkID"]=>
resource(7) of type (mysql link)
["dbHost"]=>
string(9) "localhost"
["dbUser"]=>
string(4) "root"
["dbPwd"]=>
string(3) "123"
["dbName"]=>
string(5) "ddleb"
["dbPrefix"]=>
string(5) "dede_"
["result"]=>
array(3) {
["me"]=>
int(0)
["one"]=>
resource(18) of type (Unknown)
["al"]=>
resource(25) of type (mysql result)
}
["queryString"]=>
string(301) "Select arc.*,tp.typedir,tp.typename,tp.corank,tp.isdefault,tp.defaultname,tp.namerule,
tp.namerule2,tp.ispart,tp.moresite,tp.siteurl,tp.sitepath
from `dede_archives` arc left join `dede_arctype` tp on arc.typeid=tp.id
where arc.arcrank > -1 order by arc.sortrank desc limit 0,1 "
["parameters"]=>
array(0) {
}
["isClose"]=>
bool(false)
["safeCheck"]=>
bool(true)
}
<br>
解决方案 »
免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货