arianhojat Posted October 20, 2006 Share Posted October 20, 2006 i output an array to html with print_r($array) func. Anyway to get it nicely formatted?thanksif not anyone got a recursive function i can try? Link to comment https://forums.phpfreaks.com/topic/24591-pretty-printing-php-arrays-with-print_r/ Share on other sites More sharing options...
Barand Posted October 20, 2006 Share Posted October 20, 2006 This is an improvement over just print_r()[code]echo '<pre>', print_r($array, true), '</pre>';[/code] Link to comment https://forums.phpfreaks.com/topic/24591-pretty-printing-php-arrays-with-print_r/#findComment-112059 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.