<?php $ar = ['a','b','c']; $json = json_encode($ar); echo " <script> var x = $json ; </script>";
You have javascript disabled. You will not be able to edit any code.