I am trying to scrape some data out of an HTML page that I'm getting with cURL. I've been using a PHP DOM lib called ganon; but in this case, the number I need is in Javascript.
{
label: "Views<span class='Footnote'>*</span>",
type: "other",
id: "Views",
value: "7"
}
I only need the 7. So if I could match on id: "Views", and get everything up to the closing } and only return numbers; I believe this is possible -- I've been working on it but REGEX is certainly not my strong suite.
json_decode.