fork download
  1. <?php
  2.  
  3. // your code goes here
  4. $json = '{"response":[{"id":398262775,"first_name":"Некий","last_name":"Тип","photo_50":"https:\/\/pp.userapi.com\/c637131\/v637131775\/1ebb0\/0b3sHJcHiD0.jpg","photo_max_orig":"https:\/\/pp.userapi.com\/c637131\/v637131775\/1ebae\/jsx-Xgx7h5o.jpg"}]}';
  5. $data = json_decode($json, true);
  6. var_dump($data['response'][0]['first_name']);
Success #stdin #stdout 0.01s 82880KB
stdin
Standard input is empty
stdout
string(10) "Некий"