php stdClass Object 解析
stdClassObject([word_name]=>goout[is_CRI]=>1[exchange]=>stdClassObject([word_pl]=>[wo...
stdClass Object ( [word_name] => go out [is_CRI] => 1 [exchange] => stdClass Object ( [word_pl] => [word_past] => [word_done] => [word_ing] => [word_third] => [word_er] => [word_est] => ) [symbols] => Array ( [0] => stdClass Object ( [ph_en] => ɡəu aut [ph_am] => ɡo aʊt [ph_other] => [ph_en_mp3] => http://res.iciba.com/resource/amp3/0/0/f0/eb/f0ebc176acb87aaf3b7165173a057106.mp3 [ph_am_mp3] => http://res.iciba.com/resource/amp3/1/0/f0/eb/f0ebc176acb87aaf3b7165173a057106.mp3 [ph_tts_mp3] => http://res-tts.iciba.com/f/0/e/f0ebc176acb87aaf3b7165173a057106.mp3 [parts] => Array ( [0] => stdClass Object ( [part] => [means] => Array ( [0] => 外出 [1] => 出国 [2] => 熄灭 [3] => 出版 ) ) ) ) ) [items] => Array ( [0] => ) )
取出”外出“,应怎样做 展开
取出”外出“,应怎样做 展开
1个回答
推荐于2016-01-29 · 知道合伙人软件行家
关注
展开全部
//调用这个函数,将其幻化为数组,然后取出对应值
function object_array($array)
{
if(is_object($array))
{
$array = (array)$array;
}
if(is_array($array))
{
foreach($array as $key=>$value)
{
$array[$key] = object_array($value);
}
}
return $array;
}
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询