Page 76 - Open Soource Technologies 304.indd
P. 76

Sarabjit Kumar, Lovely Professional University                              Unit 6: Building Blocks of PHP



                              Unit 6:  Building Blocks of PHP                                     Notes



             CONTENTS
             Objectives

             Introduction
             6.1   Building Blocks of PHP

                  6.1.1  Variables
                  6.1.2   Data Types

                  6.1.3  Operators
                  6.1.4  Expressions

                  6.1.5   PHP Constants
                  6.1.6   Switch Flow

                  6.1.7   Loop Control Structures
                  6.1.8   Browser Output

             6.2  Summary
             6.3  Keywords

             6.4   Self Assessment Questions
             6.5   Review Questions

             6.6   Further Reading

            Objectives

            After studying this unit, you will be able to:

               •  Explain variables in PHP and its data types.
               •  Discuss types of operators.

               •  Explain expressions.

               •  Discuss PHP constants.

            Introduction

            On the building blocks of PHP, including data types, literals, variables, and constants. Every
            concept is illustrated with tested code examples, screen shots showing program output, and
            line-by-line explanations.
            The basic building blocks of the PHP language: variables and operators. You’ll need to get up to
            speed with reading and writing PHP code and a solid grounding in the basics is very important.






                                             LOVELY PROFESSIONAL UNIVERSITY                                    71
   71   72   73   74   75   76   77   78   79   80   81