Come da titolo, avendo un array in PHP, come faccio a passare l'intero array in JavaScript, nella stessa pagina.php

Grazie