Oops, no-perator found. Have a joke instead.
arithmetic
$a - $b
Subtraction
Calculate the difference between two numbers.
Tags
Related
{
selectOperator(operator.slug);
search = '';
}">
{
selectOperator(operator.slug);
search = '';
}" href="/operators/negative-number-conversion">-$a {
selectOperator(operator.slug);
search = '';
}" href="/operators/subtraction-assignment">$a -= $b {
selectOperator(operator.slug);
search = '';
}" href="/operators/decrement-and-return">--$a {
selectOperator(operator.slug);
search = '';
}" href="/operators/return-and-decrement">$a-- {
selectOperator(operator.slug);
search = '';
}" href="/operators/addition">$a + $b
$a = 1 - 3; // -2
bitwise
null coalescing
comparison
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.