how to get specific values from curl response in php
<p>I have the following format of response from using curl:</p>

<pre><code>{
    "result": {
        "total": 1,
        "userquery": "my own query",
        "items": [
            {
                "coord": {
                    "a": -326.9159528,
                    "b": 12.0192037
                }
            }
        ]
    }
}
</code></pre>

<p>I want to save the parts after "a": and "b": so only the two sets of number will be saved in php variables.</p>

<p>How can I do it? And what would be the best way of doing it?</p>