摘要: function xml_to_array($Obj){ $result= (array)simplexml_load_string($Obj,'SimpleXMLElement', LIBXML_NOCDATA); return $result; } 阅读全文
posted @ 2020-04-02 13:41 酷酷的城池 阅读(142) 评论(0) 推荐(0) 编辑
摘要: <?php /************************************************************** * * 使用特定function对数组中所有元素做处理 * @param string &$array 要处理的字符串 * @param string $fun 阅读全文
posted @ 2020-04-02 13:39 酷酷的城池 阅读(642) 评论(0) 推荐(1) 编辑
摘要: /*获取唯一订单号*/ function order_number($order_header){ global $redis; if(trim_all($order_header)!=""){ $order_header=trim_all($order_header)."-"; } $time=t 阅读全文
posted @ 2020-04-02 09:53 酷酷的城池 阅读(407) 评论(0) 推荐(0) 编辑