I am writing some code that expects to receive a block of html which is always going to include the following:
var code = [39.474, -0.3548];
The value between the square brackets is always going to be different. How could I extract the value between the square brackets using php?
I should probably point out that I am parsing a block of HTML to php that includes js aswell.