Render array to markup after submitting a form
Just try like:

'#markup' =&gt; '&lt;pre&gt;'.print_r($form_state['temporary'], true).'&lt;/pre&gt;';


you could just save the print_r() value to variable and then output that to a Div or something ...