0
Personal I have the following array:
stdClass Object (
[Chats] => Array (
[0] => stdClass Object (
[Chat] => stdClass Object (
[ChatId] => 13383
[UserId] => a2784a6dcf
[SystemId] => a2784a6dcf~a2784a6dcf_OVL
[Fullname] => chris
[Email] => [email protected]
)
)
[1] => stdClass Object (
[Chat] => stdClass Object (
[ChatId] => 13383
[UserId] => a2784a6dcf
[SystemId] => a2784a6dcf~a2784a6dcf_OVL
[Fullname] => chris
[Email] => [email protected]
)
)
)
)
I’m in doubt on how I would travel these arrays taking the value user_id
?
How do I access the value of UserId
?
Have you ever tried to do anything?
– Woss
I’ve tried it like this:
$array->chats[0]->chat->UserId
but I don’t know if it’s right!– Christian Jorge
That’s the idea, but the keys are
Chats
andChat
, with the letterc
capital letter– Woss