PHP 新建动态类的代码
1 $testObject=(object)array(); 2 3 $testObject->first="firstValue"; 4 5 var_dump($testObject); 6 7 $testObject2= new stdClass(); 8 $testObject2->second="secondValue"; 9 var_dump($testObject2);
每天进步一点点,有时间先装修空间哈
1 $testObject=(object)array(); 2 3 $testObject->first="firstValue"; 4 5 var_dump($testObject); 6 7 $testObject2= new stdClass(); 8 $testObject2->second="secondValue"; 9 var_dump($testObject2);
每天进步一点点,有时间先装修空间哈