我现在用的是姓名.com API,他们有文件解释如何获得细节。
我已经做了一切,但我可以照抄结果。
我已做过var(var)。
object(stdClass)#4 (2) {
["result"]=> object(stdClass)#5 (2) {
["code"]=> int(100) ["message"]=> string(18) "Command Successful"
}
["domains"]=> object(stdClass)#6 (8) {
["mynewdomain.mobi"]=> object(stdClass)#7 (5) {
["avail"]=> bool(true)
["tld"]=> string(4) "mobi"
["price"]=> string(4) "8.99"
["premium"]=> bool(false)
["backorder"]=> bool(false)
}
["mynewdomain.net"]=> object(stdClass)#8 (5) {
["avail"]=> bool(false)
["tld"]=> string(3) "net"
["price"]=> string(5) "49.95"
["premium"]=> bool(false)
["backorder"]=> bool(true)
}
["mynewdomain.org"]=> object(stdClass)#9 (5) {
["avail"]=> bool(true)
["tld"]=> string(3) "org"
["price"]=> string(4) "9.99"
["premium"]=> bool(false)
["backorder"]=> bool(false)
}
["mynewdomain.info"]=> object(stdClass)#10 (5) {
["avail"]=> bool(true)
["tld"]=> string(4) "info"
["price"]=> string(4) "3.99"
["premium"]=> bool(false)
["backorder"]=> bool(false)
}
["mynewdomain.com"]=> object(stdClass)#11 (5) {
["avail"]=> bool(false)
["tld"]=> string(3) "com"
["price"]=> string(5) "49.95"
["premium"]=> bool(false)
["backorder"]=> bool(true)
}
["mynewdomain.biz"]=> object(stdClass)#12 (5) {
["avail"]=> bool(false)
["tld"]=> string(3) "biz"
["price"]=> string(5) "29.95"
["premium"]=> bool(false)
["backorder"]=> bool(true)
}
["mynewdomain.me"]=> object(stdClass)#13 (5) {
["avail"]=> bool(false)
["tld"]=> string(2) "me"
["price"]=> string(5) "49.95"
["premium"]=> bool(false)
["backorder"]=> bool(true)
}
["mynewdomain.tv"]=> object(stdClass)#14 (5) {
["avail"]=> bool(false)
["tld"]=> string(2) "tv"
["price"]=> string(5) "49.95"
["premium"]=> bool(false)
["backorder"]=> bool(true)
}
}
}
and this is another short result for listing domains:
object(stdClass)#4 (2) {
["result"]=> object(stdClass)#5 (2) {
["code"]=> int(100)
["message"]=> string(18) "Command Successful"
}
["domains"]=> array(0) { }
}
我尝试如下:
<代码>echo$response->domains
echo $response[ domains ]
但实际上,我无法工作。 谁能帮助我?
提前感谢,