Write a PHP script to get yesterday's date.
<?php $dt = new DateTime(); $dt->sub(new DateInterval('P1D')); echo $dt->format('F j, Y')."\n"; ?>
Sample Output:
July 10, 2017
total answers (1)
start bookmarking useful questions and collections and save it into your own study-lists, login now to start creating your own collections.
Sample Output:
need an explanation for this answer? contact us directly to get an explanation for this answer