Printing the week

  • 4/12/2011
public function pretty_monday() {

  $time = strtotime(((date('w')!=1)?'previous ':'').'monday');
  return date('F jS',$time).'-'.date('jS',strtotime('6 days',$time ));
}