php - Behance API var starts with number -
at behance api array of objects projects. when print cover object this:
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 )
so, how access variables start numbers in php ???
if stored in variable named $object
, wanted value of key 202
:
$object->{'202'}
Comments
Post a Comment