mirror of
https://github.com/vrana/adminer.git
synced 2025-08-30 09:39:51 +02:00
Improve dumping methods if run from terminal
This commit is contained in:
@@ -2,9 +2,19 @@
|
||||
|
||||
function dump($value)
|
||||
{
|
||||
$cli = PHP_SAPI == 'cli';
|
||||
|
||||
if (!$cli) {
|
||||
echo "<pre>";
|
||||
}
|
||||
|
||||
var_export($value);
|
||||
echo "</pre>\n";
|
||||
|
||||
if (!$cli) {
|
||||
echo "</pre>";
|
||||
}
|
||||
|
||||
echo "\n";
|
||||
}
|
||||
|
||||
function dumpe($value)
|
||||
|
Reference in New Issue
Block a user