I want to delete <?xml version="1.0" encoding="utf-8"?>
from my string containg this and after that lots of other things. How to delete it because of several double quotes I am having problem to define str_replace
function.
You could consider using single quotes:
str_replace('<?xml version="1.0" encoding="utf-8"?>', '', $myString);