随笔分类 -  PHP

摘要:function minus_func($i,$j){ $res = $i - $j; return $res; } function greet($param) { if(!$param || !is_array ($param)){ return 'parameat error'; } $val 阅读全文
posted @ 2022-08-12 14:29 廖亚平 阅读(121) 评论(0) 推荐(0)
摘要:class Single { private static $_instance; private function __construct() { echo "初始化一次<br/>"; } private function __clone() { // TODO: Implement __clon 阅读全文
posted @ 2021-09-02 10:30 廖亚平 阅读(23) 评论(0) 推荐(0)
摘要:New Relic xhprof xdebuger Valgrind cachegrind IFP(instrumentation-for-php) 阅读全文
posted @ 2021-08-30 17:52 廖亚平 阅读(59) 评论(0) 推荐(0)
摘要:请求方式为 function json_post($url, $data = NULL) { $curl = curl_init(); curl_setopt($curl, CURLOPT_URL, $url); curl_setopt($curl, CURLOPT_SSL_VERIFYPEER, 阅读全文
posted @ 2021-05-26 17:10 廖亚平 阅读(303) 评论(0) 推荐(0)
摘要:$model_user = new \app\admin\model\User(); //搜索条件 $phone = input('get.phone', ""); $start_time = input('get.start_time', ""); $end_time = input('get.e 阅读全文
posted @ 2021-05-13 15:43 廖亚平 阅读(61) 评论(0) 推荐(0)