<?php 

/*
** Advantage of this method is you can print 
** it anywhere in your html doc <head> or <body>
*/

function elbone_gimme_array($array) {
	echo '<script>/*';
	print_r($array);
	echo '*/</script>';
}

?>