在PHP中是否可以在XML文档中搜索元素中的某些文本?我已经找过了,但是没有找到符合我要求的。
当然可以使用strpos函数
http://php.net/manual/en/function.strpos.phpif(strpos($xml_str, "string_to_search_for")){
echo "Found";
}
在PHP中是否可以在XML文档中搜索元素中的某些文本?我已经找过了,但是没有找到符合我要求的。
当然可以使用strpos函数
http://php.net/manual/en/function.strpos.phpif(strpos($xml_str, "string_to_search_for")){
echo "Found";
}