Thread:Project:Support desk/$output- query results into an array (2)

I would like to output an array in my extension code. How do I $output-> this array? $output->addWikiText( $page_id ); doesn't seem to work, how do I do equivalent of print_r? My code is: