Accessing Javascript In PHP variable
<p>I have a php variable of javascript code which was parsed from another page. Is there a simple way to access the javascript variables individually with php? </p>

<p><strong>PHP:</strong></p>

<pre><code>$cool = "&lt;script type='text/javascript'&gt;
var Title = 'This is the title';
var Text = 'Some text here';

Title.info.showinfo({

    'thumb':'image.jpg',
    'date':'Oct 2',
    'year':'2011'

});
&lt;/script&gt;";
</code></pre>

<p><strong>What Im trying to accomplish:</strong></p>

<pre><code>$title = "This is the title";
$text = "Some text here";
$thumb = "image.jpg";
$date = "Oct 2";
$year = "2011";
</code></pre>
