当前位置:网站首页>The getfield () method in TP5 changes, and TP5 gets the value of a single field
The getfield () method in TP5 changes, and TP5 gets the value of a single field
2022-04-23 06:51:00 【Collect and study by yourself】
Want to get a single field value directly , For a long time ,tp5 Of getField() The method has changed , As follows :
TP5 Medium getField(): Split into value and column 了
Example :
••• where("id = 1")->value("title"); Output :(string) title
••• where("id = 1")->column("title"); Output :(array)
版权声明
本文为[Collect and study by yourself]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/04/202204230555552370.html
边栏推荐
猜你喜欢
随机推荐
DNA reveals surprise ancestry of mysterious Chinese mummies
WebSocket(基础)
模仿扇贝短文阅读页面
端口占用1
C# webpai 路由详解
小米摄像头异常解决
Kids and COVID: why young immune systems are still on top
Overview of node file system and buffer
thinkphp5 ---- object(think\response\Json)转数组
Node data flow
ASP.NET CORE在类库项目中读取配置文件
Parse PSD files and map them into components
关于软件的空间占用,安装目录
JS手写兼容性事件绑定
ES6规范详解
Promise(一)
初步认识Promse
Header内置对象
window环境下使用小皮面板安装redis
JQ序列化后PHP后台解析