PHP 打印前一天的时间

时间格式为 2000-02-02 02:02:02

echo date('Y-m-d H:i:s', strtotime( '-1 day', time() ) );