Enter your Sign-on user name and password.

Forgot password?
  • Follow us on:
Loading video...

Start Learning Now

Our free lessons will get you started (Flash® 10 required).
Get immediate access to our entire library.

Sign up for Educator.com

Features Overview

  • Get on-demand access to our complete library
  • Search and jump to exactly what you need to learn
  • Track your progress
  • Download practice and lesson files
  • *Ask questions and get answers from our community & instructors

Optional Parameters

  • User-defined functions can be defined to allow for optional parameters . In order to define a parameter as optional, it must be assigned a default value in its function's definition.
  • Default values must be constant values and can be of the following data types:
    • Scalar (int, float, string, bool)
    • Array
    • NULL
  • If a function has multiple optional parameters, not all optional parameters need to be supplied with argument values when calling the function.
  • For any optional parameter you wish to provide a value, you must also provide values for all ‘prior’ optional parameters defined in the function’s parameter list. Any ‘later’ optional parameters do not have to be provided values.
  • Additional Resources:

Optional Parameters

Lecture Slides are screen-captured images of important points in the lecture. Students can download and print out these lecture slide images to do practice problems as well as take notes while watching the lecture.

Computer Science: Introduction to PHP