Home >Backend Development >PHP Tutorial >怎么输出时间戳

怎么输出时间戳

WBOY
WBOYOriginal
2016-06-13 10:31:58906browse

如何输出时间戳?
如何输出时间戳?
字段date1
int(11)

echo?

------解决方案--------------------
select * form.....

$data=$row['data1'];

echo date('Y-m-d',$data);

//or

echo date('H:i:s',$data);//跟平时的一样

Statement:
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