Question
What do you want?
- Pass the php array for javascript to do what?
- Pass the php array to javascript in JSON format?
Possible Solutions
<script type="text/javascript">
$(document).ready(function() {
// alert in JSON format
alert("<?php echo json_encode($city_more) ?>");
});
</script>
<script type="text/javascript">
$(document).ready(function() {
// alert in "php" format
alert("<?php echo $city_more ?>");
});
</script>