how to get the yestrerday date in php variable code example
Example: php yesterday
$yesterday = new DateTime('yesterday');
echo $yesterday->format('Y-m-d');
$yesterday = new DateTime('yesterday');
echo $yesterday->format('Y-m-d');