Javascript/PHPからJavaScriptに配列を渡す

    php
    $php_json = json_encode($php_array);

    .js
    let js_array = ?php echo $php_json; ?;