摘要: tp5自带json()助手函数 json_encode() 阅读全文
posted @ 2020-08-07 15:57 王玉岩 阅读(1277) 评论(0) 推荐(0)
摘要: where数组条件 数组方式有两种查询条件类型:关联数组和索引数组。 关联数组 // 传入一维数组作为查询条件 Db::table('think_user')->where([ 'name' => 'thinkphp', 'status'=> 1 ])->select(); 索引数组 // 传入二维 阅读全文
posted @ 2020-08-07 09:58 王玉岩 阅读(364) 评论(0) 推荐(0)