$temp='<POPULARITY URL="qq.com/" TEXT="5" />';
preg_match_all("/\"(.+?)\"/i",$temp,$matches);
echo($matches[1][0]);
echo($matches[1][1]);