stdClass Object
(
[115] => https://m1.behance.net/profiles18/2701167/projects/8725001/115x461b2d628417adeead62b8ee18869cea.jpg
[202] => https://m1.behance.net/profiles18/2701167/projects/8725001/461b2d628417adeead62b8ee18869cea.jpg
[404] => https://m1.behance.net/profiles18/2701167/projects/8725001/404x461b2d628417adeead62b8ee18869cea.jpg
[230] => https://m1.behance.net/profiles18/2701167/projects/8725001/230x461b2d628417adeead62b8ee18869cea.jpg
)
那么,如何以PHP中的数字开头的访问变量???
答案 0 :(得分:2)
如果它存储在名为$object
的变量中,并且您希望获得密钥202
的值:
$object->{'202'}