A few small PHP coding challenges