I am attempting to learn php. Can someone explain to me why this is not working?
$dayofweek = date( "w" );
$day = date("d");
$thisweek = $day - $dayofweek;
$lastweek1 = $thisweek - 7;
$lastweek = `printf("0%d", $lastweek1)`;
The lastweek variable is empty, how can I get the output of printf into the variable $lastweek ??