/ Published in: PHP
A print_r replacement function that can handle nested arrays and strings.
Usage: printr($array);
Usage: printr($array);
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
/* A print_r replacement function that can handle nested arrays and strings Usage: printr($array); */ function printr($array){ echo '<blockquote>'; foreach($array as $key => $value){ } echo '</blockquote>'; }