时间:2021-07-01 10:21:17 帮助过:7人阅读
$a = array( array( 'userIdInfo' => array( 'uid' => '100000113', 'type' => 'ZXIN_IDTYPE::IDNA' ), 'chgCreditValue' => 50 ), array( 'userIdInfo' => array( 'uid' => '10000110', 'type' => 'ZXIN_IDTYPE::IDNA' ), 'chgCreditValue' => 150 ),);foreach($a as &$v) settype($v, 'object');print_r($a);
Array( [0] => stdClass Object ( [userIdInfo] => Array ( [uid] => 100000113 [type] => ZXIN_IDTYPE::IDNA ) [chgCreditValue] => 50 ) [1] => stdClass Object ( [userIdInfo] => Array ( [uid] => 10000110 [type] => ZXIN_IDTYPE::IDNA ) [chgCreditValue] => 150 ))
谢谢版主大人,已经解决了。