0

这是正常输出,我想得到 hydra:member->[0]

stdClass 对象 ( [@context] => /contexts/Message [@id] => /messages [@type] => hydra:Collection [hydra:member] => 数组 ( [0] => stdClass 对象

如何解码 [hydra:member]

我的代码

$js = json_decode($result);
$res = $js->hydra:member;
print_r($res);

输出

Parse error: syntax error, unexpected ':'
4

0 回答 0