AnderMedia
Coder
So, I have been studying up on my PHP and something I always run across is the method of which a formula is read and processed. Which is why I love PHP so much, I think it is one of the most dynamic languages when it comes to SQL and updating your database using formulas. Now I wanted to get clarification for myself and others who may view this thread. The order of operations in which the formulas are processed follow a syntax of it's own. When I was in school learning basic math and it's order of operations we used a phrase "Please Excuse My Dear Aunt Sally". And this acronym P.E.D.M.A.S helps one remember math's order of operations for:
Could some one clarify and perhaps apply a link to some reference that would explain it in much more depth?
Thank you much.
Kind regards, Matt
(Edit:
Just a quick update, I found this helpful tutorial video on YouTube about Numbers, and it explained "Powers" which is also exponents by definition.
You would use ** for the Power, so 5**3 = 125. Any input is still appreciated. YouTube Tutorial - PHP Numbers
- P - (Please) - Parentheses
- E - (Excuse) - Exponents
- M - (My) - Mulitplication
- D - (Dear) - Division
- A - (Aunt) - Addition
- S - (Sally) - Subtraction
Could some one clarify and perhaps apply a link to some reference that would explain it in much more depth?
Thank you much.
Kind regards, Matt
(Edit:
Just a quick update, I found this helpful tutorial video on YouTube about Numbers, and it explained "Powers" which is also exponents by definition.
You would use ** for the Power, so 5**3 = 125. Any input is still appreciated. YouTube Tutorial - PHP Numbers