format outpout in array echo php code example Example: php array formatted output print("<pre>".print_r($array_data,true)."</pre>");