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?
PHP:
$cool = "<script type='text/javascript'>
var Title = 'This is the title';
var Text = 'Some text here';
Title.info.showinfo({
'thumb':'image.jpg',
'date':'Oct 2',
'year':'2011'
});
</script>";
What Im trying to accomplish:
$title = "This is the title";
$text = "Some text here";
$thumb = "image.jpg";
$date = "Oct 2";
$year = "2011";