php 的stdClass类的简单实用
<?php $person = new stdClass(); $person->name = "yu"; $person->sex = "man"; $person->school = array("a", "b", "c"); $person->aa = func(); function func(){ echo "11111"; } echo $person->aa; print_r($person->school); ?>
<?php $person = new stdClass(); $person->name = "yu"; $person->sex = "man"; $person->school = array("a", "b", "c"); $person->aa = func(); function func(){ echo "11111"; } echo $person->aa; print_r($person->school); ?>