I use var_dump in php to print the values taken out from the database. The format is like this
;
It looks very inconvenient. Is there any way to display it like an array?
Do not add this code echo'<pre>' when outputting ;
echo '</pre>';
就能显示成这样
我想大声告诉你2017-05-24 11:36:23
Method 1: ctrl+u View source code
Method 2: Install xdebug
Method 3: Print with plug-ins such as Kint
習慣沉默2017-05-24 11:36:23
1 The browser directly installs the jsonview plug-in.
2 Install the jq.plugin in the terminal
Use echo json_encode($val) when outputting
It looks very nice.