84669 person learning
152542 person learning
20005 person learning
5487 person learning
7821 person learning
359900 person learning
3350 person learning
180660 person learning
48569 person learning
18603 person learning
40936 person learning
1549 person learning
1183 person learning
32909 person learning
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'
' when outputting ; echo ''; 就能显示成这样
echo '
Method 1: ctrl+u View source code
Method 2: Install xdebug
Method 3: Print with plug-ins such as Kint
print_r()Press F12 to see
echo print_r($arr,true);
1 The browser directly installs the jsonview plug-in.2 Install the jq.plugin in the terminalUse echo json_encode($val) when outputtingIt looks very nice.
View the source codeCustomize the output function in the editor
You can install an xdebug
Method 1: ctrl+u View source code
Method 2: Install xdebug
Method 3: Print with plug-ins such as Kint
print_r()
Press F12 to see
echo print_r($arr,true);
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.
View the source code
Customize the output function in the editor
You can install an xdebug