PHP samples fixes

Sorry for the bother Jamie! I'm too used to being in coercive Python land.