PHP: Finish Arrays, Functions, Regex, Forms, Files




CS174

Chris Pollett

Sep 26, 2016

Outline

More on PHP Arrays

Last week, we were talking about PHP arrays. Today, we start by finishing off this discussion...

Yet More on PHP Arrays

Iterating Through Arrays

Quiz

Which of the following statements is true?

  1. The command php -a can be used to start PHP in interactive mode.
  2. To make an element invisible in CSS one can set its visibility property to none.
  3. Array elements in PHP are not allowed to contain subarrays.

Quiz

Which of the following statements is true?

  1. To make an element invisible in CSS one can set its display property to hidden.
  2. Array elements in PHP must all be of the same type.
  3. PHP > 5.4.4 comes with a built-in web server.

Functions

Variable Scope

Pattern Matching

Types of web forms

Built-in Globals

File Reading

File Writing