src/Collections/Collection.php
public static function equal(array $array1, array $array2)
    {
        if (static::count($array1) != static::count($array2)) {
            return false;
        } else {
            for ($i = 0; $i < static::count($array1); $i++) {
                if ($array1[$i] != $array2[$i]) {
                    return false;
                }
            }
        }

        return true;
    }
public static function equal(array $array1, array $array2)
    {
        if (static::count($array1) != static::count($array2)) {
            return false;
        } else {
            for ($i = 0; $i < static::count($array1); $i++) {
                if ($array1[$i] != $array2[$i]) {
                    return false;
                }
            }
        }

        return true;
    }
public static function equal ( array $ array1 , array $ array2 ) { if ( static :: count ( $ array1 ) != static :: count ( $ array2 ) ) { return false ; } else { for ( $ i = 0 ; $ i < static :: count ( $ array1 ) ; $ i ++ ) { if ( $ array1 [ $ i ] != $ array2 [ $ i ] ) { return false ; } } } return true ; }
Check if array equal to another array.

@param array $array1
@param array $array2

@return bool
Check if array equal to another array .