PHP Data Types and Functions




CS174

Chris Pollett

Sep 20, 2010

Outline

General Syntax

Primitives

Integer, String, and Boolean Type

Arithmetic Operators,etc

Quiz

Which of the following statements is true?

  1. It is possible to get a CSS selector which only applies to bob class span tags within a div tag within a body
  2. The following code illustrates a pseudo-class:
    @media print {
        body { font-size: 14pt; }
    }
    
  3. PHP requests can directly share data with each other.

Output

Control Statements

Arrays

More on PHP Arrays

Yet More on PHP Arrays

Iterating Through Arrays

Functions