Page 28 - Open Soource Technologies 304.indd
P. 28
Web Technologies-I Deepak Mehta, Lovely Professional University
Notes Unit 2: Language Basics
CONTENTS
Objectives
Introduction
2.1 Lexical Structure
2.2 Data Types
2.2.1 Integer
2.2.2 Floating Point Number
2.2.3 String
2.2.4 Special Characters
2.2.5 Here Documents
2.2.6 Boolean
2.2.7 Compound Data Types
2.2.8 Resources
2.2.9 Null
2.3 Variables
2.3.1 Declaring Variables
2.3.2 Variable Variables and Variable References
2.3.3 Variable Scope
2.3.4 Environment Variable
2.4 Expressions and Operators
2.4.1 Number of Operands
2.4.2 Operator Precedence
2.4.3 Operator Associatively
2.4.4 Operator Concept
2.5 Summary
2.6 Keywords
2.7 Review Questions
2.8 Further Reading
Objectives
After studying this unit, you will be able to:
• Discuss about the lexical structure
• Understand the data types used in PHP
• Explain the variables in PHP
• Discuss about the expressions and operators in PHP
22 LOVELY PROFESSIONAL UNIVERSITY