If you need to find an index, there are several ways to do this:
$prop = 'my-crazy-property';
$obj->$prop;
$obj->{'my-crazy-property'};
$vars = get_object_vars($obj);
$vars['my-crazy-property'];
$arr = (array)$obj;
$arr['my-crazy-property'];
( , , , ), {},
$foo = new stdClass();
$foo->{"my-crazy-property"} = 1;
var_dump("my crazy property is {$foo->{"my-crazy-property"}}";
, LinkedIn API, , , XML, (, , /) XML . .