Using array_diff
Posted: Thu May 07, 2009 4:44 am
I find the documentation for array_diff and all its variants pretty confusing.
What I want to do is compare two rows in the same table of a MySql database and say whether they are identical or not (apart from the primary key, of course). Is there an easy way to do this using array_diff? Other than that, I would need to extract each row with a different prefix and compare columns individually.
Thanks.
What I want to do is compare two rows in the same table of a MySql database and say whether they are identical or not (apart from the primary key, of course). Is there an easy way to do this using array_diff? Other than that, I would need to extract each row with a different prefix and compare columns individually.
Thanks.