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:
@@ -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