//Tell the browser it's not an HTML document, but a text, by placing the following code before any output is sent header('Content-type: text/plain'); echo "<pre>".print_r($array)."</pre>";