摘要: SELECT words FROM `tbresearch_list` where keywords = 30 AND words REGEXP 'energy|sulfur|fluoride' ORDER BY ( CHAR_LENGTH(words) - CHAR_LENGTH(REPLACE( 阅读全文
posted @ 2024-05-31 17:32 TOPHP 阅读(7) 评论(0) 推荐(0) 编辑
摘要: $countValues = array_count_values($titleArr); // 筛选出出现次数大于1的值 $duplicates = array_filter($countValues, function($value) { return $value > 1; }); // 获取 阅读全文
posted @ 2024-05-31 17:07 TOPHP 阅读(3) 评论(0) 推荐(0) 编辑
摘要: public function getFolderData($dir) { $data = array(); // 打开目录并读取其中的文件/文件夹 $handle = opendir($dir); while (false !== ($file = readdir($handle))) { if 阅读全文
posted @ 2024-05-31 11:55 TOPHP 阅读(2) 评论(0) 推荐(0) 编辑
摘要: $filePath: 压缩包路径 ../123.zip $path:要解压的目录 ../unzip/ public function newUnzip($filePath,$path) { $zip= new \ZipArchive(); if($zip->open($filePath) true) 阅读全文
posted @ 2024-05-31 11:52 TOPHP 阅读(27) 评论(0) 推荐(0) 编辑