<?php function getLastDayofWeek ($strDia){ $date=new DateTime('now'); $strCriterio=$strDia.' this week'; $date->modify($strCriterio); echo $strCriterio.": ".$date->format('d/m/Y').PHP_EOL; } /*Pruebas*/ getLastDayofWeek('monday'); getLastDayofWeek('saturday'); getLastDayofWeek('sunday');
You have javascript disabled. You will not be able to edit any code.
Value for `_results` contains invalid data `array`