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.
Get Core PHP Programming: Using PHP to Build Dynamic Web Sites now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.