I've created a PHP page that outputs a string variable from my database (this string simulate a multidimensional array) , I want to use this string as a variable in a jquery code (external JavaScript file). the problem that its not working.
I've tried:
var data = [$.get( "string.php" );];
how can i insert a PHP page output into a jquery variable ?