Recommendation: "PHP Video Tutorial"
When we debug the PHP code, we will use var_dump and print_r to output the results, and the output needs to be formatted.
Formatted result
echo "<pre class="brush:php;toolbar:false">";$arr=[3,1,5,8]; print_r($arr);
Not formatted The result after transformation
$arr=[3,1,5,8]; print_r($arr);
The above is the detailed content of About PHP printing formatting display tool. For more information, please follow other related articles on the PHP Chinese website!