Jump to content

Archived

This topic is now archived and is closed to further replies.

jeremiorama

print_r()

Recommended Posts

Hi there,

Is it normal that when I use the print_r() method, everything is displayed on a single line? I mean, even with explorer or firefox, so the problem doesn't seem to be the browser.

Does anyone know what's wrong? So that instead of having everything on a single line I can see the array correctly without having to run all the line to find my element (it becomes confusing on multiple dimension arrays.

Thanks!

Share this post


Link to post
Share on other sites
Try enclosing it in <pre> tags..
[code]<?php
echo "<pre>";
print_r($array);
echo "</pre>";
?>[/code]

Share this post


Link to post
Share on other sites

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.