摘要: <tr> <td width='16%' height=25 bgcolor='ffffff'>上传附件</td> <td bgcolor='ffffff'><script type="text/javascript" src="/ziyuan/js/clipboard.min.js"></scri 阅读全文
posted @ 2022-07-27 10:57 宋先生日记 阅读(64) 评论(0) 推荐(0) 编辑
摘要: /** * 把数字1-1亿换成汉字表述,如:123->一百二十三 * @param [num] $num [数字] * @return [string] [string] */ function numToWord($num) { $chiNum = array('零', '一', '二', '三' 阅读全文
posted @ 2022-07-22 10:27 宋先生日记 阅读(193) 评论(0) 推荐(0) 编辑
摘要: // Informational 1xx 100 => 'Continue', 101 => 'Switching Protocols', // Success 2xx 200 => 'OK', 201 => 'Created', 202 => 'Accepted', 203 => 'Non-Aut 阅读全文
posted @ 2022-02-09 09:24 宋先生日记 阅读(416) 评论(0) 推荐(0) 编辑
摘要: <?php /** * 这是关于mongo数据操作的类 * song * 2022.01.20 */ declare(strict_types=1); class MongoDb{ public static $_instance = null; public $conf = null; publi 阅读全文
posted @ 2022-01-24 16:11 宋先生日记 阅读(116) 评论(0) 推荐(0) 编辑
摘要: function uploadFile($fileName) { global $empire, $dbtbpre; if($fileName){ if ($_FILES['upfile']['name'][0] == "") { exit("请上传文件!"); }//判断第一个文件名是否为空 $d 阅读全文
posted @ 2021-11-30 10:06 宋先生日记 阅读(358) 评论(0) 推荐(0) 编辑
摘要: function doreplace($str){ global $api,$empire,$class_r,$dbtbpre,$public_r; $text=Repurl($str); $exp1="[--copyurl--]"; $exp2="[/--copyurl--]"; $rr=expl 阅读全文
posted @ 2021-06-11 14:38 宋先生日记 阅读(87) 评论(0) 推荐(0) 编辑
摘要: <?php /** php下载类,支持断点续传 * download: 下载文件 * setSpeed: 设置下载速度 * getRange: 获取header中Range */ class FileDownload{ /** 下载 * @param String $file 要下载的文件路径 * 阅读全文
posted @ 2021-05-26 15:07 宋先生日记 阅读(280) 评论(0) 推荐(0) 编辑
摘要: 1.CONCAT()2.CONCAT_WS()3.GROUP_CONCAT()为了方便下面举例,这里放个student表供下面使用 s_id s_name s_sex 01 张三 男 02 李四 男 03 王五 男 04 赵六 null 一、CONCAT() :最常用的字符串拼接方法,但遇到拼接中的 阅读全文
posted @ 2021-05-14 18:11 宋先生日记 阅读(769) 评论(0) 推荐(0) 编辑
摘要: //查找手机号或者电话号码function findThePhoneNumbers($oldStr = ""){ // 检测字符串是否为空 $oldStr=trim($oldStr); $numbers = array(); if(empty($oldStr)){ return $numbers; 阅读全文
posted @ 2021-05-13 14:53 宋先生日记 阅读(1468) 评论(0) 推荐(0) 编辑
摘要: private function isCreditNo($vStr){ $vCity = array( '11','12','13','14','15','21','22', '23','31','32','33','34','35','36', '37','41','42','43','44' 阅读全文
posted @ 2021-04-25 16:26 宋先生日记 阅读(195) 评论(0) 推荐(0) 编辑