i got one page from curl which contain
<?xml version="1.0" encoding="UTF-8"?>
<ipinfo xmlns="http://data.quova.com/1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance">
i want to delete this header
so need help how to do that .
i tried str_replace function but no success
$find1='/<?xml version="1.0" encoding="UTF-8"?>/';
$find2='/<ipinfo xmlns="http://data.quova.com/1" xmlns:xs="http://www.w3.org/2001/XMLSchema-instance">/';
$contentx = str_replace($find1, '', $data,$count);
You don’t need to use ‘/ /’ delimiters with str_replace, only with regular expression functions. Remove the slashes at start and end.
In other words: