nuffsaidny Posted June 9, 2015 Share Posted June 9, 2015 Hey how's it going? I'm trying to store PHP variables from a multi-dimensional array into a JavaScript variable. Any ideas or recommendations? Thanks! Quote Link to comment https://forums.phpfreaks.com/topic/296721-passing-multidimensional-arrays-from-php-to-javascript/ Share on other sites More sharing options...
CroNiX Posted June 9, 2015 Share Posted June 9, 2015 Yes, json_encode() Quote Link to comment https://forums.phpfreaks.com/topic/296721-passing-multidimensional-arrays-from-php-to-javascript/#findComment-1513527 Share on other sites More sharing options...
nuffsaidny Posted June 9, 2015 Author Share Posted June 9, 2015 Yes, json_encode() Thanks bro! About to try that right now and see what happens! Quote Link to comment https://forums.phpfreaks.com/topic/296721-passing-multidimensional-arrays-from-php-to-javascript/#findComment-1513534 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.