Last active
January 3, 2017 08:32
-
-
Save diewland/c26f930da418b2dec59795cdb6d4bb41 to your computer and use it in GitHub Desktop.
Transform data from php to javascript
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> | |
<?php | |
echo "var data = ".json_encode($data).";"; | |
?> | |
</script> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment