<?php /** * Created by PhpStorm. * User: Xiny i@xiny9.com * Date: 2018-03-15 * Time: 13:23 */ class Dragonpay { private $pubstr = ''; //建行提供的密钥,需要登陆建行商户后台下载 private $MERCHANTID ...
function escape($str) { return str_replace('\\', '%', substr(json_encode($str), 1, -1)); } function unescape($str) { return json_decode('"' . str_replace('%', '\\', $str) . '"'); ...
$url = "https://xbug.top/a/c/c"; $ip = gethostbyname(parse_url($url); if (filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) { //有效域名 }
//异步执行操作 function asyn_sock($url) { $host = parse_url($url, PHP_URL_HOST)...
过滤掉微信昵称中的emoji表情符号// 过滤掉emoji表情 function filter_Emoji($str) { $str = preg...