xkcd #1325 and PHP DRY