I have an array called $friends
with names and ids, gotten from the Facebook graph API.
If I print it, it look something like this:
Array (
[0] => Array (
[name] => Tom
[id] => 21)
[1] => Array (
[name] => Bob
[id] => 22)
)
How do I retrieve all Keys (id
s) and create a new array like this one?
Array ( [0] => 21 [1] => 22 )