jeremiorama Posted May 26, 2006 Share Posted May 26, 2006 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! Quote Link to comment https://forums.phpfreaks.com/topic/10505-print_r/ Share on other sites More sharing options...
zq29 Posted May 26, 2006 Share Posted May 26, 2006 Try enclosing it in <pre> tags..[code]<?phpecho "<pre>";print_r($array);echo "</pre>";?>[/code] Quote Link to comment https://forums.phpfreaks.com/topic/10505-print_r/#findComment-39187 Share on other sites More sharing options...
jeremiorama Posted May 26, 2006 Author Share Posted May 26, 2006 Aaaaah, thanks a lot!!That helps!-Jeremiorama Quote Link to comment https://forums.phpfreaks.com/topic/10505-print_r/#findComment-39189 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.