将时间戳转换为时间()

Convert timestamp into time()

我想将时间戳从 mysql 转换为 time() 格式。

如果我有这个日期:

2015-06-05 08:53:30

我想转换成类似的东西:1433491545

我必须使用方法 date() ?

我找不到解决方案。

使用 strtotime() -

strtotime("2015-06-05 08:53:30");

strtotime()