rest_are_values_equal


rest_are_values_equal ( $value1, $value2 )

Parameters:
  • (mixed) value1 The first value to check.
  • (mixed) value2 The second value to check.
Returns:
  • (bool) True if the values are equal or false otherwise.
Defined at:

Description

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.

Related Functions

rest_stabilize_value, rest_sanitize_value_from_schema, rest_validate_enum, rest_validate_value_from_schema, rest_parse_date

Top Google Results

User discussions

wpseek mobile