摘要:
https://www.aconvert.com/cn/ 阅读全文
摘要:
$fileName= $_FILES['file']['name']; $filePath = $_FILES['file']['tmp_name']; $ext = pathinfo($fileName, PATHINFO_EXTENSION); if (!in_array($ext, ['csv 阅读全文
摘要:
导入Csv /** * 导入Csv * ThinkPHP5.1框架 */ public function csvDr() { $excelData = array(); //第一种:将文件一次性全部读出来 // $content = trim(firle_get_contents('../publi 阅读全文
摘要:
DELETE FROM tongfu_user_statistics WHERE 1=1 AND `user_id` in (SELECT * FROM ( (SELECT `user_id` `names` FROM tongfu_user_statistics GROUP BY user_id 阅读全文
摘要:
SELECT id, LENGTH(path) - LENGTH(REPLACE(path, ',', '')) FROM tongfu_user where LENGTH(path) - LENGTH(REPLACE(path, ',', '')) = ( select max(LENGTH(pa 阅读全文
摘要:
$balanceMoney = $balanceModel ->where(['user_id'=>$v['id']]) ->field("sum(CASE WHEN type = '17' THEN money ELSE 0 END) as money, sum(CASE WHEN type = 阅读全文
摘要:
方法1:使用strval()函数 strval()函数:用于获取变量的字符串值。 $str1=strval($bool1); 方法2:使用settype()函数 settype()函数:用于设置变量的类型。 其可以设置的类型为: "boolean" (或为"bool",从 PHP 4.2.0 起) 阅读全文
摘要:
方法1:使用substr_count()函数 substr_count() 函数计算子串在字符串中出现的次数(区分大小写的)。 <?php header("Content-type:text/html;charset=utf-8"); $str="I love Shanghai. Shanghai 阅读全文
摘要:
// str_pad(带填补的字符串,填补后的长度,填补字符串,填补位置) $result=["7","6","8","4","3","23","27","9","5","19","10","21"]; if($result){ foreach ($result as $key => $value) 阅读全文
摘要:
CSS代码生成器 你是否曾经尝试记住如何声明渐变,文本阴影,Flexbox或Grid的CSS属性,仅举几例?不容易。除非你一再使用某些CSS功能及其属性,否则很难记住所有这些功能。但是,即使是精通CSS的人有时也需要对某些属性进行复习,尤其是如果他们有一段时间没有使用它们了。 如果你需要一些最新和最 阅读全文