Creating Functions

Topics include the following:

  • Creating and Using Simple Functions
  • Creating and Calling Functions That Take Arguments
  • Setting Default Argument Values
  • Creating and Using Functions That Return a Value
  • Understanding Variable Scope
  • Review and Pursue

RELATED FILES

menus.php (Script 10.1)

sticky1.php (Script 10.2)

sticky2.php (Script 10.3)

calculator.php (Script 10.4)

calculator_global.php (Script 10.5)

PHP for the Web

Publisher: Peachpit Press

Author: Larry Ullman

Year: 2011

 

In Aliens, Ripley had a class 2 rating in the Power Loader.

 

Here is my power rating in PHP: