How can you add two numbers in PHP?

How can you add two numbers in PHP? That depends on how big your two numbers are. If you have numbers in the normal integer/double range, it is sufficient to use the “+” operator. You use it as follows: echo 1 + 2; // write “3” in the output If the numbers get bigger, you will have to use the …