drlenux/array-smart-diff

Installs: 4 491

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

pkg:composer/drlenux/array-smart-diff

1.0.4 2019-06-04 15:19 UTC

This package is auto-updated.

Last update: 2025-10-05 02:16:17 UTC


README

Latest Stable Version Total Downloads Build Status php version scrutinizer scrutinizer

Author: DrLenux

License: MIT

Doc

<?php

$a = ['a' => 1, 'b' => 2, 'd' => 4];
$b = ['a' => 2, 'b' => 2, 'c' => 3];

\DrLenux\ArrayDiff::getDiff($a, $b);

return

<?php

[
    'a' => [
        'new' => 2, 
        'old' => 1
    ], 
    'c' => [
        'new' => 3
    ], 
    'd' => [
        'old' => 4
    ]
];