PHP: Datatypes, Control Statements, Arrays




CS174

Chris Pollett

Sep 21, 2020

Outline

Overview

Configuring PHP

General Syntax

Primitives

Integer, String, and Boolean Type

Quiz

Which of the following statements is true?

  1. Only style attributes of one class selector are ever applied to an element.
  2. The CSS border attribute cannot be used to control the width of the border of an element.
  3. When the CSS position property is set to fixed for an element, it won't move when the browser window is scrolled.

Arithmetic Operators,etc

Output

Control Statements