array_diff()
function not showing correct result:-
First Array:-
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
)
Second array:-
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
)
Output:
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 column not showing in output result. if designation-id value is 1 then this index not showing in output otherwise it showing. is it bug or something else?