I have a remote page, below shows its source code,
<!DOCTYPE html>
<html>
<head>
<title>somethingg blabla</title>
</head>
<body>
<script type="text/javascript">
function blala( ) { /*** code **/ }
var sitedata = {
"count": 1,
"threads": {
"38752": {
"thread_id": 38752,
"node_id": 4,
"title": "The ShadyCraft Beta Launch!",
"prefix_id": 19,
"content": {
"count": 1,
"content": {
"226167": {
"post_id": 226167
}
}
}
}
}
};
var extra_codes_here = 'blabla';
</script>
<h1>Hello world</h1>
</body>
</html>
I have code for curl this page and i got this source code, but how to get the value var sitedata
to php array ,