i need to get data from array_keys the script i use in the server side:
PHP:
$friends = json_decode(file_get_contents(
https://graph.facebook.com/me/friends?access_token= .
$facebook->getAccessToken() ), true);
$friend_ids = array_keys($friends);
阵列数据如下:
{
"data": [
{
"name": "Tal Rozner",
"id": "554089741"
},
{
"name": "Daniel Kagan",
"id": "559274789"
},
{
"name": "ron cohen",
"id": "100001553261234"
}
]
}
i 有必要将所有数据输入能够与之合作的阵列。
how can i do it ? tanks,