设置

PHP的header函数之设置content-type

//定义编码header(&039;Content-Type:text/html;charset=utf-8&039;);//Atomheader(&039;Content-type:application/atom+x...

前端笔记 PHP的header函数之设置content-type

thinkphp5模型时间戳设置

单独在模型里面设置:(推荐)protected$autoWriteTimestamp=true;//int型protected$autoWriteTimestamp=&039;datetime&039;...

Thinkphp笔记 thinkphp5模型时间戳设置