rest_are_values_equal ( $value1, $value2 )
- (mixed) value1 The first value to check.
- (mixed) value2 The second value to check.
- (bool) True if the values are equal or false otherwise.
- Introduced in WordPress: 5.7.0
- Deprecated in WordPress: —
Checks the equality of two values, following JSON Schema semantics.Property order is ignored for objects.
Values must have been previously sanitized/coerced to their native types.