函数名称:Table::getName()
适用版本:PHP 5.3.0 及以上版本
函数描述:Table::getName() 函数用于返回 Table 对象的名称。
用法示例:
<?php
class Table {
private $name;
public function __construct($name) {
$this->name = $name;
}
public function getName() {
return $this->name;
}
}
$table = new Table("users");
echo $table->getName(); // 输出: users
?>
解释说明: