Hi all,
My simple desire is to print the contents of an array in PHP for use in Javascript. Something like this:
<script language="text/javascript">
var import = { <?php print_f($export) ?> };
</script>
The problem is that the values aren't being printed the way Javascript expects them, which is { "one", "two", "three" } etc.
Please post suggestions. Thank you!
--Glen
Memoria mihi benigna erit qui eam perscribam
My simple desire is to print the contents of an array in PHP for use in Javascript. Something like this:
<script language="text/javascript">
var import = { <?php print_f($export) ?> };
</script>
The problem is that the values aren't being printed the way Javascript expects them, which is { "one", "two", "three" } etc.
Please post suggestions. Thank you!

--Glen

Memoria mihi benigna erit qui eam perscribam