PHP – removing unwanted XML from string

Yesterday I was working on a small PHP script in which an API sends “xml” within the response. That XML is supposed to make handling the data easier, but to be fair I just didn’t need it. This is the snippet that the API returned <searchLink fieldCode=”AR” term=”%22Krugman%2C+Paul+R%2E%22″>Krugman, Paul R.</searchLink> At first I tried to […]

Scroll to top