USING THE HTML <PRE></PRE> TAGS IN PHP
I use <pre></pre> tags around debug output for readability purposes. To show you how much more readable the data is when using the tags, I'll give an example:
After setting up a basic Bootstrap form, I used the <pre></pre> tags around the var_dump() function to display data from the form inputs. I initially filled out the info with dummy information to output some data in the array from the form.
This results in the following output. Notice how readable it is:
This is compared to not using the <pre></pre> tags, which results in unreadable code like this:
So the bottom line is, <pre></pre> are great to use around debug output for readable code!