我對象名字是$ distinct1
print_r($distinct1)
顯示下面的對象,但是當我嘗試做
echo $distinct1->properties->city
OR
echo $distinct1->distinct_id
我沒有得到任何價值回報。任何想法發生了什麼?
stdClass Object
(
[$distinct_id] => AAA
[$properties] => stdClass Object
(
[$city] => Palo Alto
[$country_code] => US
[$region] => California
[$name] => John Smith
)
)
Uhhh是你的字段名爲''properties''或''$ properties''? – miorel 2013-04-05 22:46:49