It matches if the $operand equals the value of the property named
$propertyName. If $operand is NULL a strict check for NULL is done. For
strings the comparison can be done with or without case-sensitivity.
Note: case-sensitivity is only possible if the database supports it. E.g.
if you are using MySQL with a case-insensitive collation you will not be able
to test for case-sensitive equality (the other way around works, because we
compare lowercased values).
public equals ( string $propertyName, mixed $operand, boolean $caseSensitive = true ) : object | ||
$propertyName | string | The name of the property to compare against |
$operand | mixed | The value to compare with |
$caseSensitive | boolean | Whether the equality test should be done case-sensitive for strings |
Résultat | object |