I've been using the following code to create a one dimensional javascript array from a php array, and it has been working great...

var js_array = new Array();
js_array = [' . ($php_array ? '"' . implode('", "', $php_array) . '"' : '') . '], i;

how can I append the above code to work for a multidimensional array.

Thanks for any suggestions