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