My code in php and jquery
<script type="text/javascript">
$(function() {
var city_list = <?php echo json_encode($_REQUEST['cities']); ?>
alert("city_list:: "+city_list);
});
This is working fine in my local where my php version is 5.3.1, but when i put it is server where my php version is 4.3.11 is not working...
I need it to work on both local and sever side.