Printing the week

public function pretty_monday() {

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

Let’s keep in touch

Reach out on Twitter or subscribe for (very) occasional updates.

Hey, I'm RJ: digital entomologist and intermittent micropoet, writing from the beautiful Rose City.