PHP切图(N宫格)
/** * 图片切割小图 * @Author fish * @DateTime 2016-08-04T14:25:58+0800 * @param string…
/** * 图片切割小图 * @Author fish * @DateTime 2016-08-04T14:25:58+0800 * @param string…
<?php function getFile($url, $save_dir = ”, $filename = ”, $type = 0) { if …
字符串类型验证 ctype_alnum — 做字母和数字字符检测 ctype_alpha — 做纯字符检测 ctyp…
function dump($var, $echo = true, $label = null, $strict = true) { $label = ($la…
function checkpic($url){ $curl = curl_init($url);//设置url curl_setopt($curl, CURL…
getimg.php 调用:
//https请求(支持GET和POST) function https_request($url, $data = null) { $curl = curl_…
$emailArr = explode(“@”,$email); if($emailArr[0]){ if($emailArr[0]>3){ $leng=3; …
function parseHost($httpurl) { $httpurl = strtolower( trim($httpurl) ); if(empty…
/* * 获取网站logo */ function get_url_ico($url){ $url_arr=parse_url($url); if(!$url_…