Zend - The PHP Company




Code Gallery: DaJoker


Object-Array Diff  

Type: code fragment
Added by: DaJoker
Entered: 21/08/2003
Last modified: 09/12/2002
Rating: - (fewer than 3 votes)
Views: 4057
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...




Search