The result looks like this:
[{"county_name":"Albany","description":null"}]
This obviously doesn't work because I'm not too good with regex stuff
Code: Select all
if (preg_match('{"county_name":"', $content, $result)) {
$county = $result[1];
}