chore: 重写初始提交(清空历史,整理后全量提交)
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
/*
|
||||
* @Author: YwxApp <ywx@ywxapp.cn>
|
||||
* @Date: 2026-04-29 02:32:33
|
||||
* @LastEditors: YwxApp <ywx@ywxapp.cn>
|
||||
* @LastEditTime: 2026-07-21 23:27:10
|
||||
* @Description:
|
||||
* @FilePath: \ywxapp_dev\app\backend\validate\Admin.php
|
||||
* @CustomString: Copyright (c) 2026 YwxApp
|
||||
*/
|
||||
|
||||
declare (strict_types = 1);
|
||||
|
||||
|
||||
function var_export_short($expression, $return = false) {
|
||||
$export = var_export($expression, true);
|
||||
$patterns = [
|
||||
"/array \(/" => "[",
|
||||
"/^([ ]*)\)(,?)$/m" => "$1]$2",
|
||||
"/=>[ ]?\n[ ]+\[/" => "=> [",
|
||||
"/([ ]*)(\'[^\']+\') => ([['])/" => "$1$2 => $3",
|
||||
];
|
||||
$export = preg_replace(array_keys($patterns), array_values($patterns), $export);
|
||||
if ($return) return $export;
|
||||
echo $export;
|
||||
}
|
||||
Reference in New Issue
Block a user