Created
August 20, 2017 17:07
-
-
Save ratulcse10/4b50e1775caa8c7f2402a23139469c0f to your computer and use it in GitHub Desktop.
How to cast PHP Array to JS Array
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<script> | |
var lan = <?php echo json_encode($user_data_lan); ?>; | |
var lon = <?php echo json_encode($user_data_lon); ?>; | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment