Diff

Type
Class
Namespace
craft\helpers
Inherits
craft\helpers\Diff
Since
3.6.0

Diff helper

View source (opens new window)

# Public Methods

Method Description
compare() Compares two arrays and returns whether they are identical.
diff() Generates a diff for two values, represented as YAML.

# compare()

Since
3.6.0

Compares two arrays and returns whether they are identical.

If the values are both arrays, they will be compared recursively.

View source (opens new window)

Arguments

Returns

boolean (opens new window)

# diff()

Generates a diff for two values, represented as YAML.

View source (opens new window)

Arguments

Returns

string (opens new window)