- date: documentation ( source)
- strtotime: documentation ( source)
<?php
$LastFridayOfMonth = date('Y-m-d', strtotime("last Friday", strtotime("2013-06-01")));
echo "$LastFridayOfMonth \r" ;
$LastFridayOfMonth = date('Y-m-d', strtotime("last Friday", strtotime("2013-06")));
echo $LastFridayOfMonth;
test
?>