php date yesterday today code example
Example 1: yesterday php
date('F j, Y',strtotime("-1 days"));
Example 2: php yesterday
$yesterday = new DateTime('yesterday');
echo $yesterday->format('Y-m-d');
Example 3: yesterday php
date("F j, Y", time() - 86400);