This one is simple, but for some reason i was using too many lines of code to get to this same result in just 1 line… U_U :
$fecha = '2011-08-23';
echo date("Y-m-d", strtotime($fecha .' sunday') ); // = 2011-08-21
Required fields are marked *
Notify me of follow-up comments via email.
Notify me of new posts via email.
← Symfony2: Working with Assetic
Blog at WordPress.com. Theme: P2 by Automattic.
Get every new post delivered to your Inbox.