O'Reilly logo

PHP by Robin Nixon

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Images

Working with Arithmetic Operators

Images To view the accompanying video for this lesson, please visit mhprofessional.com/nixonphp/.

In the previous lesson, you saw a few examples of operators in action, such as the + operator used for addition, the . operator for concatenating strings together, the – operator used for subtraction, and the = operator used for assigning values.

   But PHP supports many more operators than that, such as *, /, and more. It also includes functions you can draw on for more advanced expression evaluation, such as sin(), sqrt() ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required