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! 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] 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 Link to comment https://forums.phpfreaks.com/topic/10505-print_r/#findComment-39189 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.