Hi !
La mejor forma de hacerlo es imprimirlo en el HTML directamente:
Código PHP:
<html>
<head>
<title></title>
<script language="javascript">
<?php
// Levantamos el Array
$script = 'var matriz = new Array();';
for ($i=0; $i <= $total; $i++) {
$script.= 'matriz['.$i.'] = '.$informacion_del_array.';';
}
?>
</script>
</head>
<body>
</body>
</html>
Con eso podes imprimir en el SCRIPT un array que puedas levantar luego mediante JS.
Espero te sea util!
-ByE-