array_diff()
功能无法显示正确的结果: -和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
)
desi输出结果中没有显示gnation id列。 如果指定ID值为1,则此索引不会在输出中显示,否则显示。它是错误还是别的?
为什么不显示?分享你的原始脚本。 –
你显示的输入是两个不同的数组? –
那么应该输出什么正确的?也许'array_diff'不是你真正需要的。你试验的代码在哪里? – Ghost