<?php $edit1="2019-09-01"; $res0=strtotime($edit1); $res=strtotime("-1 days",$res0); echo date("Y-m-d",$res);?>
Standard input is empty
2019-08-31
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!