make iOS friendly php