帝国cms:通过字段处理函数功能,转换为unix时间戳存储。谁能帮忙看下这个错误

WBOY
Release: 2016-06-23 14:16:53
Original
798 people have browsed it

function user_Arctime($mid,$f,$isadd,$isq,$value,$cs)
{
$value=time();
return $value;
}

本人新手,写的上面这个在存储时会自动变更为当前时间 


回复讨论(解决方案)

那你想要什么?

return strtotime($value);
大概是这样子吧

那你想要什么?

提交数据时,将2013-07-24(时间)转换为unix时间戳

哪个参数表示提交的数据?

感谢各位大大的热情回复,已处理。#2正解

source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template