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