PHP for Drupal Tutorial #3: PHP Constants and Operators

In this third introductory PHP tutorial, I quickly cover off PHP Constants, something I forgot to mention in Tutorial 2. Essentially a constant is a variable that's value doesn't change. You can create one with the keyword define, followed by the constant's name and value.

From there, we look at some PHP operators. I show you how to do basic arithmetic with PHP followed by a few syntax shortcuts.