Friday, 15 April 2011

object - How to get the property of stdClass php -



object - How to get the property of stdClass php -

i want property of [code]. save in variable $co=[code]; idea?

stdclass object ( [errors] => array ( [0] => stdclass object ( [message] => invalid or expired token [code] => 89 ) ) )

assuming have dumped $var, can [code] using $var->errors[0]->code

php object stdclass

No comments:

Post a Comment