/ Published in: PHP

It's easy to print out an array that is readable and with only one line of code. This can easily be turned into a nifty function.
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
// The One liner // The <pre> tags make it looks nice and neat and readable. // The function function pretty_print($array) { echo "<pre>"; print_r($array); echo "</pre>"; }
Comments
