📜  php 创建没有类的对象 - PHP 代码示例

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

代码示例2
$object = new stdClass();
   $object->property = 'Here we go';

   var_dump($object);
   /*
   outputs:

   object(stdClass)#2 (1) {
      ["property"]=>
      string(10) "Here we go"
    }
   */