22 06 22

//sql查询语句替换成汇总查询语句
$sql = "";
$countSql = preg_replace('/(?<=SELECT)[\s\S]*(?=FROM)/iU', " COUNT(*) AS 'c' ", $sql);




延伸阅读
  1. php 数字加大写字母按顺序编号 00 - ZZ
  2. xls 下载封装
  3. php 生成A-ZZ的顺序