说白了就是在model类中声明的字段输出类型;其语法如下:
注意strtotime()函数可以将诸如‘2018-12-21’这样的日期字符串转为整数存入数据库
关于update方法---如果字段未发生改变,那么update语句也不会被执行
thinkphp类型转换
原文:https://www.cnblogs.com/saintdingspage/p/10162826.html