<?php var_dump(date('c', strtotime("next Friday", strtotime("2013-05-01"))), date('c', strtotime("last Friday", strtotime("2013-06-01"))));
You have javascript disabled. You will not be able to edit any code.