TP获取MYSQL版本代码,新手第二次发$model = new \Think\Model(); $v = $model->query("select VERSION() as ver"); $array['mysqlver'] = $v[0]['ver']; AD:真正免费,域名+虚机+企业邮箱=0元