mirror of
https://github.com/vrana/adminer.git
synced 2026-06-19 22:30:17 +02:00
Improve arrays formatting in dump method
This commit is contained in:
@@ -8,7 +8,10 @@ function dump($value)
|
||||
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) {
|
||||
echo "</pre>";
|
||||
|
||||
Reference in New Issue
Block a user