英语单词查询
attribute
「attribute」的意思
v. 把……归因于;认为是……所作;认为……具有某种特质; n. 属性,特质;标志,象征;定语
n.属性,品质,特征,加于,归结于
「attribute」的用法
attribute属性 - 在PHP中,属性是类的成员变量。
「attribute」的例句
$car->color = 'red';
$car->颜色 = '红色';
$user->age = 25;
$user->年龄 = 25;
$product->price = 19.99;
$product->价格 = 19.99;
$book->author = 'John Doe';
$book->作者 = '约翰·多伊';
$student->grade = 'A';
$student->等级 = 'A';
$house->address = '123 Main St.';
$house->地址 = '123 主街';
$tree->height = 10;
$tree->高度 = 10;
$flower->color = 'blue';
$flower->颜色 = '蓝色';
$car->model = 'Toyota Camry';
$car->型号 = '丰田凯美瑞';
$computer->ramSize = 8;
$computer->内存大小 = 8;