Код: Выделить всё
array_diff()Первый массив:-
Код: Выделить всё
Array(
[designation_id] => 1
[name] => Y
[fathers_name] => Z
[mothers_name] => F
[spouse_name] => d
[gender] => F
[last_achieved_degree] => 2
[date_of_birth] => 1960-10-17
[date_of_joining] => 1987-02-04
)
Код: Выделить всё
Array(
[designation_id] => 9
[name] => M
[fathers_name] => N
[mothers_name] => O
[spouse_name] =>
[gender] => M
[last_achieved_degree] => 1
[date_of_birth] => 1967-11-17
[date_of_joining] => 2016-01-01
)
Код: Выделить всё
Array
(
[name] => Y
[fathers_name] => Z
[mothers_name] => F
[spouse_name] => d
[gender] => F
[last_achieved_degree] => 2
[date_of_birth] => 1960-10-17
[date_of_joining] => 1987-02-04
)
Если значение designation_id равно 1, то этот индекс не отображается в выходных данных, в противном случае он отображается. Это ошибка или что-то еще?
Подробнее здесь: https://stackoverflow.com/questions/398 ... ssociative
Мобильная версия