ThinkChat2.0新版上线,更智能更精彩,支持会话、画图、阅读、搜索等,送10W Token,即刻开启你的AI之旅 广告
>[danger] 模型的序列化输出 + `toArray()` 触发获取器 ~~~ $data = self::where('id', 1)->find()->toArray(); $data = self::where('id', 1)->select()->toArray(); ~~~ >[danger] 模型数据对象取值 + `模型数据对象->字段名` 触发获取器 ~~~ $data = self::where('id', 1)->find(); var_dump($data->nick_name); $data = self::where('id', 1)->select(); foreach ($data as $v) { // var_dump($v->nick_name); } ~~~