More PHP string fixes

Also line 229, any reason for swapping back and forth between ' and " ?