PHP First Friday Display Improvement?
You can improve your ternary operator by using it like this :

$today = new DateTime();
$this_months_friday = new DateTime('first friday of this month');
$next_months_friday = new DateTime('first friday of next month');
echo 'Friday, '. (($today &lt; $this_months_friday) ? $this_months_friday-&gt;format('M j') : $next_months_friday-&gt;format('M j')) . ' at 7pm';


which can them become :

echo 'Friday, '. (($today &lt; $this_months_friday) ? $this_months_friday : $next_months_friday)-&gt;format('M j') . ' at 7pm';