|
Perforce Chronicle 2012.2/486814
API Documentation
|
Provides utility methods for manipulating arrays. More...
Static Public Member Functions | |
| static | computeDiff ($old, $new) |
| Compute the difference between two arrays. | |
Provides utility methods for manipulating arrays.
| static P4Cms_ArrayUtility::computeDiff | ( | $ | old, |
| $ | new | ||
| ) | [static] |
Compute the difference between two arrays.
| array | $old | The original array. |
| array | $new | The new array. |
{
$removals = array_merge(array_diff($old, $new));
$additions = array_merge(array_diff($new, $old));
return array($additions, $removals);
}