摘要: $string = ' ';$xml =(array)(simplexml_load_string($string,'SimpleXmlElement',LIBXML_NOCDATA));print_r($xml);//结... 阅读全文
posted @ 2015-04-02 14:48 gophper 阅读(561) 评论(0) 推荐(0) 编辑
摘要: PHP支持的由Daniel Stenberg创建的libcurl库允许你与各种的服务器使用各种类型的协议进行连接和通讯。libcurl目前支持http、https、ftp、gopher、telnet、dict、file和ldap协议,以下代码是 微信支付中,curl的使用代码 /** * 作用:... 阅读全文
posted @ 2015-04-02 14:17 gophper 阅读(637) 评论(0) 推荐(0) 编辑