<?php
namespace app\index\controller;
use app\BaseController;
use think\facade\Db;
use app\model\Aaa;
use think\facade\Cache;
class Index extends BaseController
{
public function hello()
{$user1=Aaa::find(3);
halt($user1->toArray());
}
}
tp6把对象转换为数组
最新推荐文章于 2023-12-28 16:23:09 发布