I have a bunch of parallel arrays in php
$phoneNums = array();
$minutesUsed = array();
$plans = array();
$charges = array();
and I'm trying to put them in arrays in JS so I can access them and print values into the page
var phoneNums = <?php echo $phoneNums ?>;
var minutesUsed = <?php echo $minutesUsed ?>;
var plans = <?php echo $plans ?>;
var charge = <?php echo $charges ?>;
What ends up happening is my values end up as undefined. How would I pass an array from php to js this without using AJAX or JQuery?