To display an arrays contents, I have been using print_r(), but this displays the array across the page/screen. Is there a function that displays the array vertically?
No ... HTML does that.
<pre><?php print_r($_SESSION); ?></pre>
If you're just doing this for debug purposes, just use print_r and then view the page-source. That will show you the array as it's shown in the PHP manual.