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! 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() 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! 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
Archived
This topic is now archived and is closed to further replies.