rafael.paulino/update-list-pattern

Class to return differences between arrays

1.0.0 2019-02-19 19:41 UTC

This package is auto-updated.

Last update: 2024-04-20 07:48:52 UTC


README

Class to return differences between arrays

Example of use

Install: composer require rafael.paulino/update-list-pattern

<?php
require '../vendor/autoload.php';
use UpdateListPattern\UpdateListPattern;

$array1 = array("a" => "verde", "vermelho", "azul", "vermelho");
$array2 = array("b" => "verde", "amarelo", "vermelho");
$result = new UpdateListPattern($array1, $array2);
$result = $result->getResults();
print_r($result);