悉野小楼

导航

2016年11月24日

php SimpleXML 例子

摘要: $txt = GetRemoteText($url); if(strlen($txt) > 0) { $xml = simplexml_load_string($txt); //获取xml if($xml) { $logo = $xml->xpath("webinfo"); $title = $xm 阅读全文

posted @ 2016-11-24 17:34 悉野 阅读(458) 评论(0) 推荐(0) 编辑

php utf-8字符转ascii字符

摘要: function utf8_urldecode($str) { $str = preg_replace("/%u([0-9a-f]{3,4})/i","&#x\\1;",urldecode($str)); return html_entity_decode($str,null,'UTF-8');; 阅读全文

posted @ 2016-11-24 17:30 悉野 阅读(3343) 评论(0) 推荐(0) 编辑