From the course: Learning PHP

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Challenge: Implementing a complicated calculation

Challenge: Implementing a complicated calculation - PHP Tutorial

From the course: Learning PHP

Start my 1-month free trial

Challenge: Implementing a complicated calculation

(upbeat electronic music) - [Instructor] All right, it's time for another challenge. To make sure you grasp the basics of PHP, in this challenge, you will perform a set of mathematical operations and store them in variables. Store each of the following equations or the results of each equation in an array called results. Then at the end, print out those results. There is a starter file in the Exercise Files where you'll have these equations available to you. Please note that in A, the last operation you're doing there is squaring the entire result, so that's not just a multiply by two. That is the squared exponent.

Contents