Parsing Arrays in PHP
<blockquote>
  <p><strong>Possible Duplicate:</strong><br>
  <a href="http://stackoverflow.com/questions/4343596/parsing-json-file-with-php">Parsing JSON file with PHP</a>  </p>
</blockquote>



<p>Can anyone suggest an elegant way to change an array of the form below to an array containing only the primary keys, using php?</p>

<pre><code>[{
    "PrimaryKey": "489",
    "name": "Ted"
}, {
    "PrimaryKey": "488",
    "name": "Bill"
}, {
    "PrimaryKey": "487",
    "singleFbId": "Joe"
}]
</code></pre>
