Learning PHP: Some Basic Math

Welcome back!

The next step we’re going to take with PHP is to get it performing some basic math operations for us. PHP easily makes short work of even the most complicated math work, but you need to know how to write it.

The example below will step you through the basic operations in math.

Try them out for yourself and see how you get on!

If you have any questions, please leave a comment below and I’ll get you sorted out!

About the Author

Andrew Goldenberg is a software developer, gamer, and somewhat of a geek. He's a gadget fiend and cannot resist the shiny of a brand new Apple product.