Charles C. Spencer
CIS 52N Spring 2008
Practice Chapter 4

Calling Functions:

First Company

Second Company

Third Company

Returning Values:

2

This message was printed from a function.

This message was returned from a function.

Variable Scope:

Local variable

Global Variable

Global Variable 2

Using Autoglobals:

The name of the current script is /testing/Lab2/practice/Chapter4Practice.php
This script was executed with the following server software: Apache/2.0.52 (Red Hat)
This script was requested with the following server protocol: HTTP/1.1

Global Variable 3

Forms/Quiz:
Explorers Quiz
Explorers Score

while Statements:
1
2
3
4
5

You have printed 5 number.


1
2
4
8
16
32

You have multiplied by 2 (less than 50) number.

do...while Statements:
Sun, Mon, Tue, Wed, Thur, Fri, Sat,
for Statements:
pizza, burgers, french fries, tacos, fried chicken,
foreach Statements:

Jan

Feb

Mar

Apr

May

Jun

July

Aug

Sep

Oct

Nov

Dec

Home Page
Lab 2 Exercises