Page 56 - Open Soource Technologies 304.indd
P. 56
Web Technologies-I
Notes Unit 3: Flow-Control Statements and PHP in Web Page
CONTENTS
Objectives
Introduction
3.1 Conditional Statements
3.1.1 If Statement
3.1.2 Switch Statement
3.1.3 Other Formats
3.2 Advance Conditional
3.2.1 Comparing Strings
3.2.2 Similarity
3.3 Iteration
3.3.1 While Statement
3.3.2 Do...while Statement
3.3.3 For Statement
3.4 Termination Statements
3.4.1 Break Statement
3.4.2 Continue Statement
3.4.3 Stepping Out Multiple Levels
3.5 Including Code
3.6 Embedding PHP in Web Pages
3.6.1 XML Style
3.6.2 SGML Style
3.6.3 ASP Style
3.6.4 Script Style
3.6.5 Echoing Content Directly
3.7 Summary
3.8 Keywords
3.9 Review Questions
3.10 Further Readings
Objectives
After studying this unit, you will be able to:
• Understand the conditional statements used in PHP
• Explain advance conditionals used in PHP
• Discuss the iteration
• Explain the termination statement
• Understand the including code
• Explain embedding PHP in Web pages
50 LOVELY PROFESSIONAL UNIVERSITY