📅  最后修改于: 2022-03-11 14:54:05.525000             🧑  作者: Mango
// $object->property = 'value';
// assigning a string
$person->first_name = 'John';
$person->last_name = "Doe";
// assigning a number - notice we don't have quotes around 32
$person->age = 32;