<?php
$response = [
'id' => 10499478683521864,
'birthday' => '07/22/1983',
'email' => 'email@saya.com',
'first_name' => 'Alan',
'gender' => 'male',
'last_name' => 'Malmsteen',
'link' => 'https://www.facebook.com/app_scoped_user_id/1049213468352864/',
'location' => (object) [
'id' => 102173722491792,
'name' => 'Jakarta, Indonesia'
],
'locale' => 'id_ID',
'middle_name' => ',El-nino',
'name' => ',Alan El-nino Malmsteen',
'timezone' => 7,
'updated_time' => '2015-05-28T04:09:50+0000',
'verified' => 1
];
var_export($response);
echo "\n\n---\n\n";
var_dump($response);
- Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.1.0 - 8.1.28, 8.2.0 - 8.2.18, 8.3.0 - 8.3.7
- array (
'id' => 10499478683521864,
'birthday' => '07/22/1983',
'email' => 'email@saya.com',
'first_name' => 'Alan',
'gender' => 'male',
'last_name' => 'Malmsteen',
'link' => 'https://www.facebook.com/app_scoped_user_id/1049213468352864/',
'location' =>
(object) array(
'id' => 102173722491792,
'name' => 'Jakarta, Indonesia',
),
'locale' => 'id_ID',
'middle_name' => ',El-nino',
'name' => ',Alan El-nino Malmsteen',
'timezone' => 7,
'updated_time' => '2015-05-28T04:09:50+0000',
'verified' => 1,
)
---
array(14) {
["id"]=>
int(10499478683521864)
["birthday"]=>
string(10) "07/22/1983"
["email"]=>
string(14) "email@saya.com"
["first_name"]=>
string(4) "Alan"
["gender"]=>
string(4) "male"
["last_name"]=>
string(9) "Malmsteen"
["link"]=>
string(61) "https://www.facebook.com/app_scoped_user_id/1049213468352864/"
["location"]=>
object(stdClass)#1 (2) {
["id"]=>
int(102173722491792)
["name"]=>
string(18) "Jakarta, Indonesia"
}
["locale"]=>
string(5) "id_ID"
["middle_name"]=>
string(8) ",El-nino"
["name"]=>
string(23) ",Alan El-nino Malmsteen"
["timezone"]=>
int(7)
["updated_time"]=>
string(24) "2015-05-28T04:09:50+0000"
["verified"]=>
int(1)
}
preferences:
115.58 ms | 405 KiB | 122 Q