So here is the situation i'm stuck at. I'm trying to import a multidimensional array in PHP from a javascript file(http://roosters-hd.stenden.com/js/data_autogen.js) which i import as a string. It looks like this:
locgrouparray[i++] = new locgroup("E0.090 (33)", "E0.090 (33)", "#SPLUS6ECDBE", "MET");
locgrouparray[i++] = new locgroup("E0.092 (28)", "E0.092 (28)", "#SPLUS6ECDBF", "(none)");
locgrouparray[i++] = new locgroup("E0.111 (30)", "E0.111 (30)", "#SPLUS6ECDC0", "(none)");
locgrouparray[i++] = new locgroup("E0.113 (30)", "E0.113 (30)", "#SPLUS6ECDC1", "(none)");
etc.
Into a php array:
Array (
[0] => Array (
[Class] => "E0.090 (33)"
[ClassID] => "#SPLUS6ECDBE""
[type] => "MET"
),
[1] => Array (
[Class] => "E0.090 (28)"
[ClassID] => "#SPLUS6ECDBF""
[type] => "(none)"
),
[2] => Array (
[Class] => "E0.111 (30)"
[ClassID] => "#SPLUS6ECDC0""
[type] => "(none)"
),
etc.
)
What would be the most efficient way to import this multidimensional array?