cleaning up php syntax output