exitetiesse
New Member
I am trying to replace a tag from a xml. I have stored a xml results through curl in variable. and trying to make a file.xml.when i try to replace with this function , it doesnt return any matches. why?\[code\] function get_tag( $tag, $xml ) { $tag = preg_quote($tag); preg_match_all('{<'.$tag.'[^>]*>(.*?)</'.$tag.'>}', $xml, $matches, PREG_PATTERN_ORDER); return $matches[1]; }\[/code\]