1. Technology
Send to a Friend via Email
You can opt-out at any time. Please refer to our privacy policy for contact information.

Learn PHP - A Beginner's Guide to PHP Programing


6 of 9

You have probably all heard the term expression used in mathematics. We use expressions in PHP to preform operations and give an answer to a single value. These expressions are made up of two parts, the operators and the operands. The operands can be variables, numbers, strings, boolean values, or other expressions. Here is an example:

a = 3 + 4

In this expression the operands are a, 3 and 4

b = (3 + 4) / 2

In this expression the expression (3+4) is used as an operand along with b and 2.

Related Video
Basic PHP Syntax
Using PHP With HTML
  1. About.com
  2. Technology
  3. PHP / MySQL
  4. Learn PHP
  5. PHP Operands Tutorial

©2014 About.com. All rights reserved.