how to get yesteday date in php 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');
date('F j, Y',strtotime("-1 days"));
$yesterday = new DateTime('yesterday');
echo $yesterday->format('Y-m-d');