array_diff
Posted: Sat Apr 29, 2006 11:02 pm
I have two arrays which I want checked, both when passed to print_r() return:
Identical in everyway...
but when I pass both arrays to array_diff() I get this:
WTF...
If both arrays are identical...should this function return an array of ZERO length???
What the hell am I missing...?
Cheers 
Code: Select all
Array ( [0] => fname [1] => lname [2] => time )
Array ( [0] => fname [1] => lname [2] => time )but when I pass both arrays to array_diff() I get this:
Code: Select all
Array ( [1] => lname [2] => time )If both arrays are identical...should this function return an array of ZERO length???
What the hell am I missing...?
Code: Select all
print_r(array_diff($arr1, $arr2));