Use this simple functino to duplicate the array_diff() or array_diff_assoc() functionality in PHP with arrays of your own objects. This should, in theory, work with any data
type. serialize() could maybe even be used to make this obsolete, but who knows...