当前位置:网站首页>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
边栏推荐
猜你喜欢
随机推荐
ASP.NET CORE配置选项(下篇)
freeCodeCamp----shape_calculator练习
WebAPI+Form表单上传文件
写一个正则
Wildcards and special symbols for shell scripts
百度地图基础案例
SiteServer CMS5.0使用总结
【正河源刀具相关】
sql中的 IF 条件语句的用法
【关于数据库的简易认识】
千呼万唤始出来
不用登录直接下载PNG图标的一个网站
.Net Core3.1 使用 RazorEngine.NetCore 制作实体生成器 (MVC网页版)
thinkphp5 ---- object(think\response\Json)转数组
mysql密码过期的方法
.Net Core 下使用 Quartz —— 【4】作业和触发器之作业属性和异常
ASP.NET CORE3.1 Identity注册用户后登录失败的解决方案
Leetcode刷题之实现strStr()
excel快速自动填充空白单元格上一行的内容
端口占用1