<?php
$data = json_decode('{"template_name":"welcome","subjContext":[],"bodyContext":{"profiles":[{"id":"1","id_user":"1","id_city":"0","id_country":"0","preferences":{"join_reasons":"","age_from":"0","age_to":"0","has_children":"0","more_children":"0","weight_from":"0","weight_to":"0","height_from":"0","height_to":"0","body_type":"","drinks":"0","smokes":"0"},"personal":{"avatar_original":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img11.png","avatar_l":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img2.png","avatar_m":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img10.png","avatar_s":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img4.png","age":0,"birth_day":"30","birth_month":"01","birth_year":"2014","country":"","city":"","name":"Anastasia","gender":"female","height":"0","weight":"0","body_type":"average","marital_status":"not_married","count_children":"0","want_more_children":"0","education":"high_school","religion":"catholicism","occupation":"","drinking":"0","smoking":"0","date_birth":"2014-01-30 07:18:13"},"date_created":"2014-01-30 06:50:33","date_updated":"2014-01-30 06:50:33","is_online":"0"},{"id":"70","id_user":"70","id_city":"0","id_country":"0","preferences":{"join_reasons":"","age_from":"0","age_to":"0","has_children":"0","more_children":"0","weight_from":"0","weight_to":"0","height_from":"0","height_to":"0","body_type":"","drinks":"0","smokes":"0"},"personal":{"avatar_original":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img11.png","avatar_l":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img1.png","avatar_m":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img10.png","avatar_s":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img4.png","age":0,"birth_day":"30","birth_month":"01","birth_year":"2014","country":"","city":"","name":"Daria","gender":"female","height":"0","weight":"0","body_type":"average","marital_status":"not_married","count_children":"0","want_more_children":"0","education":"high_school","religion":"catholicism","occupation":"","drinking":"0","smoking":"0","date_birth":"2014-01-30 07:18:13"},"date_created":"2014-01-30 06:50:37","date_updated":"2014-01-30 06:50:37","is_online":"0"},{"id":"189","id_user":"189","id_city":"0","id_country":"0","preferences":{"join_reasons":"","age_from":"0","age_to":"0","has_children":"0","more_children":"0","weight_from":"0","weight_to":"0","height_from":"0","height_to":"0","body_type":"","drinks":"0","smokes":"0"},"personal":{"avatar_original":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img11.png","avatar_l":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img2.png","avatar_m":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img9.png","avatar_s":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img4.png","age":0,"birth_day":"30","birth_month":"01","birth_year":"2014","country":"","city":"","name":"Marina","gender":"female","height":"0","weight":"0","body_type":"average","marital_status":"not_married","count_children":"0","want_more_children":"0","education":"high_school","religion":"catholicism","occupation":"","drinking":"0","smoking":"0","date_birth":"2014-01-30 07:18:13"},"date_created":"2014-01-30 06:50:45","date_updated":"2014-01-30 06:50:45","is_online":"0"},{"id":"11","id_user":"11","id_city":"0","id_country":"0","preferences":{"join_reasons":"","age_from":"0","age_to":"0","has_children":"0","more_children":"0","weight_from":"0","weight_to":"0","height_from":"0","height_to":"0","body_type":"","drinks":"0","smokes":"0"},"personal":{"avatar_original":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img11.png","avatar_l":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img1.png","avatar_m":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img10.png","avatar_s":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img4.png","age":0,"birth_day":"30","birth_month":"01","birth_year":"2014","country":"","city":"","name":"Dasha","gender":"female","height":"0","weight":"0","body_type":"average","marital_status":"not_married","count_children":"0","want_more_children":"0","education":"high_school","religion":"catholicism","occupation":"","drinking":"0","smoking":"0","date_birth":"2014-01-30 07:18:13"},"date_created":"2014-01-30 06:50:34","date_updated":"2014-01-30 06:50:34","is_online":"0"},{"id":"47","id_user":"47","id_city":"0","id_country":"0","preferences":{"join_reasons":"","age_from":"0","age_to":"0","has_children":"0","more_children":"0","weight_from":"0","weight_to":"0","height_from":"0","height_to":"0","body_type":"","drinks":"0","smokes":"0"},"personal":{"avatar_original":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img11.png","avatar_l":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img3.png","avatar_m":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img10.png","avatar_s":"http:\/\/dl.dropboxusercontent.com\/u\/52521635\/VictoriaBrides\/i\/for_preview\/img4.png","age":0,"birth_day":"30","birth_month":"01","birth_year":"2014","country":"","city":"","name":"Olga","gender":"female","height":"0","weight":"0","body_type":"average","marital_status":"not_married","count_children":"0","want_more_children":"0","education":"high_school","religion":"catholicism","occupation":"","drinking":"0","smoking":"0","date_birth":"2014-01-30 07:18:13"},"date_created":"2014-01-30 06:50:36","date_updated":"2014-01-30 06:50:36","is_online":"0"}],"userId":"210","password":"test123"}}');
$profiles = $data->bodyContext->profiles;
print_r($profiles[0]);
- Output for git.master, git.master_jit, rfc.property-hooks
- stdClass Object
(
[id] => 1
[id_user] => 1
[id_city] => 0
[id_country] => 0
[preferences] => stdClass Object
(
[join_reasons] =>
[age_from] => 0
[age_to] => 0
[has_children] => 0
[more_children] => 0
[weight_from] => 0
[weight_to] => 0
[height_from] => 0
[height_to] => 0
[body_type] =>
[drinks] => 0
[smokes] => 0
)
[personal] => stdClass Object
(
[avatar_original] => http://dl.dropboxusercontent.com/u/52521635/VictoriaBrides/i/for_preview/img11.png
[avatar_l] => http://dl.dropboxusercontent.com/u/52521635/VictoriaBrides/i/for_preview/img2.png
[avatar_m] => http://dl.dropboxusercontent.com/u/52521635/VictoriaBrides/i/for_preview/img10.png
[avatar_s] => http://dl.dropboxusercontent.com/u/52521635/VictoriaBrides/i/for_preview/img4.png
[age] => 0
[birth_day] => 30
[birth_month] => 01
[birth_year] => 2014
[country] =>
[city] =>
[name] => Anastasia
[gender] => female
[height] => 0
[weight] => 0
[body_type] => average
[marital_status] => not_married
[count_children] => 0
[want_more_children] => 0
[education] => high_school
[religion] => catholicism
[occupation] =>
[drinking] => 0
[smoking] => 0
[date_birth] => 2014-01-30 07:18:13
)
[date_created] => 2014-01-30 06:50:33
[date_updated] => 2014-01-30 06:50:33
[is_online] => 0
)
This tab shows result from various feature-branches currently under review by the php developers. Contact me to have additional branches featured.
Active branches
Archived branches
Once feature-branches are merged or declined, they are no longer available. Their functionality (when merged) can be viewed from the main output page
preferences:
37.9 ms | 405 KiB | 8 Q