Oops, no-perator found. Have a joke instead.
arithmetic
bitwise
null coalescing
comparison
$a < $b
Less than
Check if the value to the left is less than the value to the right.
Tags
Related
{
selectOperator(operator.slug);
search = '';
}">
{
selectOperator(operator.slug);
search = '';
}" href="/operators/less-than-or-equal">$a <= $b {
selectOperator(operator.slug);
search = '';
}" href="/operators/greater-than">$a > $b {
selectOperator(operator.slug);
search = '';
}" href="/operators/greater-than-or-equal">$a >= $b
2 < 3; // true
2 < '3'; // false
2 < 3.0; // false
logical
strings
What is this? Who are you!?
PHP Operators is a reference guide for operators old and new in the PHP programming language. We're SPATIE, a web development agency from Belgium. Besides client work we like to contribute to the open source community and make fun projects like this one.