I am trying to get the "Id" value from an object an API returns.
This is what I get back from an the array $IS_user[0]
which the API returns:
object(Contact)#165 (5) {
["customFieldFormId"]=>
int(-1)
["fields":protected]=>
NULL
["table":protected]=>
string(7) "Contact"
["data":protected]=>
array(78) {
["Id"]=>
'1'
.................
I want the Id so tried $IS_user[0]->data['Id']
But it broke.