Parsing Javascript-Array in PHP
<p>If I have a String, containing the Javascript-Code for an array:</p>

<pre><code>parent.data[0].c = [[10,'TESTVALUE',]];
</code></pre>

<p>with a lot of nested arrays in it. What is the best way to parse it with PHP. JSON is not an option due to the fact that the data is only available in the format above.</p>

<p>Thx!</p>
