Quantcast
Channel: PHP
Viewing all articles
Browse latest Browse all 28

PHP for Drupal Tutorial #3: PHP Constants and Operators

$
0
0

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.

Video: 

Viewing all articles
Browse latest Browse all 28

Trending Articles