php mode

Not sure how to work an if statement into this.