O'Reilly logo

Core PHP Programming: Using PHP to Build Dynamic Web Sites by Leon Atkinson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 2. VARIABLES, OPERATORS, AND EXPRESSIONS

Topics in This Chapter

  • Identifiers

  • Data Types

  • Variable Creation and Scope

  • Assigning Values to Variables

  • Retrieving Values

  • Freeing Memory

  • Constants

  • Operators

  • Logical and Relational Operators

  • Bitwise Operators

  • Miscellaneous Operators

  • Assignment Operators

  • Expressions

Everything in PHP is either an identifier or an operator. An identifier can be a function or variable. An operator is usually one or two symbols that stand for some sort of data manipulation like addition or multiplication. When identifiers and operators are combined, they become an expression. This chapter introduces the concepts that form the basis of all PHP code.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required