0
点赞
收藏
分享

微信扫一扫

tp6把对象转换为数组

嚯霍嚯 2022-05-19 阅读 221


<?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把对象转换为数组_php



举报

相关推荐

tp6 数组查询where

tp6 RabbitMQ

安装tp6

tp6 开启session

tp6调试(trace)

TP6 简单登录

TP6学习笔记

0 条评论