1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-30 01:30:12 +02:00

Improve arrays formatting in dump method

This commit is contained in:
Peter Knut
2024-11-19 23:10:11 +01:00
parent f93db81c0e
commit b6b379a8ce

View File

@@ -8,7 +8,10 @@ function dump($value)
echo "<pre>"; echo "<pre>";
} }
var_export($value); $export = var_export($value, true);
$export = preg_replace('~=>\s+array\s*~', "=> array", $export);
$export = preg_replace('~\(\s+\)~', "()", $export);
echo $export;
if (!$cli) { if (!$cli) {
echo "</pre>"; echo "</pre>";