摘要:
function timediff($begin_time,$end_time) { if($begin_time < $end_time){ $starttime = $begin_time; $endtime = $end_time; } else{ $starttime = $end_time 阅读全文
摘要:
function curlRequest($url, $data=array(), $method = 'GET'){ $method = strtoupper($method); $ch = curl_init(); curl_setopt($ch, CURLOPT_FAILONERROR, 1) 阅读全文
摘要:
/** * 取汉字的第一个字的首字母 * @param type $str * @return string|null */ function getFirstCharter($str){ if(empty($str)){return '';} $str=preg_replace('/·/', "" 阅读全文