include('Property.php');
$obj = new Property ();
$obj->price = 2500.00;
$obj ['address_primary'] = '100 Main St';
$obj->state = 'VA';
echo 'Address :: ', $obj->address_primary, ' ', PHP_EOL;
echo 'City, State, Zip :: ', $obj ['state'];
请有人向我解释一下,从拥有这个:$obj = new Property () 我们可以创建/初始化或拥有:$obj ['address_primary'] 并能够回应这个:$obj->address_primary
抱歉,我尽量解释这个问题。谢谢各位的回答!!