Nutur adlı üyeden alıntı: mesajı görüntüle
{"session_key":"asfF492060526.14-123213123","uid":100008494060899,"secret":"1f95553 2227e0badab8550c6b68b106c","access_token":"TESTTTT TTTTTTTTTTT","machine_id":"gdfs-","session_cookies":[{"name":"c_user","value":"asf","expires":"Fri, 13 Apr 2018 05:15:26 GMT","expires_timestamp":1523596526,"domain":".fac ebook.com","path":"\/","secure":true},{"name":"xs","value":"14:MGqy8GDN NBXH-A:2:1492060526:12935","expires":"Fri, 13 Apr 2018 05:15:26 GMT","expires_timestamp":1523596526,"domain":".fac ebook.com","path":"\/","secure":true},{"name":"fr","value":"32423434.AW UF-R1Qd5r-okwGpzc5qEFG1cM.BY7wlu..AAA.0.0.BY7wlu.AWVsZyX4"," expires":"Fri, 13 Apr 2018 05:15:26 GMT","expires_timestamp":1523596526,"domain":".fac ebook.com","path":"\/"},{"name":"datr","value":"bgnvWM7cfxSdXQhCUXx D9De-","expires":"Sat, 13 Apr 2019 05:15:26 GMT","expires_timestamp":1555132526,"domain":".fac ebook.com","path":"\/","secure":true}],"confirmed":true,"identifier":"yunusakanya","user _storage_key":"324324324"}

arkadaşlar postlanan veri bu fakat ben sadece
access_token kısmındaki testt , yani token kodunu almak istiyorum, aşağıdaki şekilde malesef olmadı
"access_token":"TESTTTTTTTTTTTTTTT"


# Gelen / Parcala
$tokenMy= htmlspecialchars($_POST['postToken']);
$tokenMy= explode('access_token',$tokenMy);
$tokenMyx= $tokenMy[1];
$tokenMyx= explode('expires_in',$tokenMyx);
$accessToken = $tokenMyx[0];

elinizdeki veri json verisi;

$x = '{"session_key":"asfF492060526.14-123213123","uid":100008494060899,"secret":"1f95553 2227e0badab8550c6b68b106c","access_token":"TESTTTT TTTTTTTTTTT","machine_id":"gdfs-","session_cookies":[{"name":"c_user","value":"asf","expires":"Fri, 13 Apr 2018 05:15:26 GMT","expires_timestamp":1523596526,"domain":".fac ebook.com","path":"\/","secure":true},{"name":"xs","value":"14:MGqy8GDN NBXH-A:2:1492060526:12935","expires":"Fri, 13 Apr 2018 05:15:26 GMT","expires_timestamp":1523596526,"domain":".fac ebook.com","path":"\/","secure":true},{"name":"fr","value":"32423434.AW UF-R1Qd5r-okwGpzc5qEFG1cM.BY7wlu..AAA.0.0.BY7wlu.AWVsZyX4"," expires":"Fri, 13 Apr 2018 05:15:26 GMT","expires_timestamp":1523596526,"domain":".fac ebook.com","path":"\/"},{"name":"datr","value":"bgnvWM7cfxSdXQhCUXx D9De-","expires":"Sat, 13 Apr 2019 05:15:26 GMT","expires_timestamp":1555132526,"domain":".fac ebook.com","path":"\/","secure":true}],"confirmed":true,"identifier":"yunusakanya","user _storage_key":"324324324"}';

$y = json_decode($x);
echo $y->access_token;
şeklinde alabilirsiniz.