Home Syllabus Lectures Assignments Project

CGS 3066: Introduction to Internet Technology
Spring 2003
Lecture #14: Writing PHP Functions

Outline

  1. Simple Functions
  2. Dealing with Globals
  3. Static Variables
  4. Pass by Reference
  5. Simple Function Example
  6. Globals and Scoping Example
  7. Static Variable Example
  8. Pass by Reference Example

Simple Functions

Dealing with Globals

Static Variables

Pass by Reference

Valid XHTML 1.0! Valid CSS!