php stdClass 对象
问题描述:
我有点失落.
使用 print_r
我得到这些结果
with print_r
I get these results
stdClass Object ( [distlat] => 0 [distlng] => 0 [id] => 380 )
但如何回显结果?
像 stdClass->distlat->$distlat
吗?
请给我一个提示.
答
所以,
echo $object->distlat;
echo $object->distlng;
不适合你?