單項選擇題

下列對$student使用正確的是()。

A.$student->$getName();
B.$student->name;
C.$student->$name;
D.$student.getName();

微信掃碼免費搜題