PHP Demos



Form Demonstration

Form accepting user input and displaying the results after submitting.

Math Demonstration

Demonstration of several basic math functions in PHP.


Conditional Execution Demonstration

Demonstration of an if statement testing the range of an integer. Since the integer was set to a value of 57, the page displays "Normal", but were this based on user input, the return could be "Low" (less than 50), "Normal" (50-100), or "High" (100+).


Repetition Demonstration

Demonstration of a while loop incrementing from 1 to 7.


Indexed Array Demonstration

An array indexed from 0-6 listing the days of the week.


Associative Array Demonstration

An array listing state capitals indexed by the state abbreviation.


OOP Demonstration

Demonstration of 3 objects created from a unique PHP class listing employee information.


Database Table Demonstration

Demonstration of requesting information from a database and displaying the information in a table