📜  在 php 示例中将数组转换为 stdclass 对象 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:41.238000             🧑  作者: Mango

代码示例1
'John',
'address'=>'Houston',
'employment' => array(
    'id' => '1',
    'address' => 'Los Angeles'
    )
);
print_r(json_decode(json_encode($empInfo)));