PHP - get JSON parent value : <p>In php, I'm trying to get the numbers (0, 13, 20, 45, 53, 56) from this json file:</p>

<pre><code>{
    "0": {
        "classcat": "a",
    },
    "13": {
        "classcat": "b",
    },
    "20": {
        "classcat": "c",
    },
    "45": {
        "classcat": "d",
    },
    "53": {
        "classcat": "e",
    },
}
</code></pre>

<p>Im populating this file to a selectfield with a foreach loop. My desired output would be:</p>

<pre><code>&lt;select&gt;
&lt;option value="(classcatvalue)"&gt;(classcatvalue + number)&lt;/option&gt;
&lt;option value="a"&gt;a 0&lt;/option&gt;
&lt;option value="b"&gt;b 13&lt;/option&gt;
&lt;option value="c"&gt;c 20&lt;/option&gt;
&lt;option value="d"&gt;d 45&lt;/option&gt;
&lt;option value="e"&gt;e 53&lt;/option&gt;
&lt;/select&gt;
</code></pre>

<p>Looks simple, but i cannot figure it out.
Any ideas?</p>
