Как обработать foreach
-ем данный массив? Не могу вывести это: $Array[1]->EMAIL[0]->VALUE;
Array (
[1] => stdClass Object
(
[TITLE] => Запрос
[SOURCE_ID] => Веб сайт
[DATE_CREATE] => 2016-01-14T16:34:32+03:00
[ID] => 2394
[EMAIL] => Array
(
[0] => stdClass Object
(
[ID] => 6590
[VALUE_TYPE] => WORK
[VALUE] => [email protected]
[TYPE_ID] => EMAIL
)
)
)
[2] => stdClass Object
(
[TITLE] => Запрос
[SOURCE_ID] => WEB
[DATE_CREATE] => 2016-01-14T17:30:33+03:00
[ID] => 2396
[EMAIL] => Array
(
[0] => stdClass Object
(
[ID] => 6594
[VALUE_TYPE] => WORK
[VALUE] => [email protected]
[TYPE_ID] => EMAIL
)
)
)
)
Стандартной конструкцией
foreach ($array as $items){
foreach ($items as $value){
echo $value;
}
}
$email['VALUE']
а$email->VALUE