- Автор темы
- #1
Всем привет!
Мне надо из этого массива
получить примерно такую конструкцию:
То есть два массива с элементами name.
Мне надо из этого массива
PHP:
Array
(
[0] => Array
(
[user] => Array
(
[0] => Array
(
[id] => 81
[name] => Alexander
[user_id] => Array
(
[0] => Array
(
[name] => test test test 25
)
[1] => Array
(
[name] => test44
)
[2] => Array
(
[name] => test445
)
[3] => Array
(
[name] => test 1P
)
[4] => Array
(
[name] => test 2P
)
)
)
[1] => Array
(
[id] => 82
[name] => Anita
[user_id] => Array
(
[0] => Array
(
[name] => test3
)
[1] => Array
(
[name] => test44
)
[2] => Array
(
[name] => test445
)
)
)
[2] => Array
(
[id] => 83
[name] => Anastassia
[user_id] => Array
(
[0] => Array
(
[name] => test44
)
)
)
[3] => Array
(
[id] => 159
[name] => Daniel
[user_id] => Array
(
[0] => Array
(
[name] => test44
)
)
)
)
)
[1] => Array
(
[user] => Array
(
[0] => Array
(
[id] => 148
[name] => Maria
[user_id] => Array
(
[0] => Array
(
[name] => 3
)
[1] => Array
(
[name] => test test 33
)
[2] => Array
(
[name] => test test test 25
)
)
)
)
)
)
PHP:
Array
[name] => test test test 25
[name] => test44
[name] => test445
[name] => test 1P
[name] => test 2P
[name] => test3
[name] => test44
[name] => test445
[name] => test44
[name] => test44
)
Array
[name] => 3
[name] => test test 33
[name] => test test test 25
)
Последнее редактирование модератором: