- var_dump: documentation ( source)
- date: documentation ( source)
- strtotime: documentation ( source)
<?php
var_dump(date('c', strtotime("next Friday", strtotime("01 May 2013"))), date('c', strtotime("last Friday", strtotime("first day of next month"))));