src/Helpers/Arrays.php
public static function equal(array $a, array $b): bool
    {
        // Elements count should be equal
        $count_equal = (\count($a) === \count($b));
        // Between the keys should not be differences
        $difference = (array_diff($a, $b) === array_diff($b, $a));

        return ($count_equal && $difference);
    }
public static function equal(array $a, array $b): bool
    {
        // Elements count should be equal
        $count_equal = (\count($a) === \count($b));
        // Between the keys should not be differences
        $difference = (array_diff($a, $b) === array_diff($b, $a));

        return ($count_equal && $difference);
    }
public static function equal ( array $ a , array $ b ) : bool { // Elements count should be equal $ count_equal = ( \ count ( $ a ) === \ count ( $ b ) ) ; // Between the keys should not be differences $ difference = ( array_diff ( $ a , $ b ) === array_diff ( $ b , $ a ) ) ; return ( $ count_equal && $ difference ) ; }
Check if two arrays is equal, with same keys

@param   array $a
@param   array $b
@return  bool
Check if two arrays is equal with same keys