PHP Classes, Namespaces, Autoloading




CS174

Chris Pollett

Apr 5, 2021

Outline

Classes in PHP

Constructors/Destructors

Private, Protected, Public

Static and Const

Cloning

Quiz

Which of the following statements is true?

  1. The SQL CREATE DATABASE command is used to create a new database table.
  2. A new row could be inserted into the table FOO (A INT) using the command: INSERT INTO FOO VALUES (55);
  3. BCNF is a PHP interface for connecting to a database.

Inheritance

Referring to Parents, Final

Namespaces

Using Namespaces

Namespace Conventions

Autoloading