PHP stdClassの例
function make(){
$obj = new stdClass;
$obj->point = 10 ;
$obj->str = "hello";
}
$foo = make();
echo $foo->str;
echo $foo->point;
function make(){
$obj = new stdClass;
$obj->point = 10 ;
$obj->str = "hello";
}
$foo = make();
echo $foo->str;
echo $foo->point;