天天看點

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);
?>