$operator public property
The operator for comparison. The following operators are supported:
-
==
: check if two values are equal. The comparison is done is non-strict mode. -
===
: check if two values are equal. The comparison is done is strict mode. -
!=
: check if two values are NOT equal. The comparison is done is non-strict mode. -
!==
: check if two values are NOT equal. The comparison is done is strict mode. -
>
: check if value being validated is greater than the value being compared with. -
>=
: check if value being validated is greater than or equal to the value being compared with. -
<
: check if value being validated is less than the value being compared with. -
<=
: check if value being validated is less than or equal to the value being compared with.
When you want to compare numbers, make sure to also set $type to number
.
Please login to continue.