Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on What PHP 5.5 might look like. Parent comment
Right now this is how I do this:
function salute($user, array $options = null) { $options = (array) $options + array('shout' => false); $salutation = "Hi $user!"; if ($options['shout']) $salutation = strtoupper($salutation); return $salutation; }
Right now this is how I do this: