Course Work from "Learning PHP in 24 Hours":

RolloverTest

First.php (hello world)

Listing 4.1 (Variable Types)
Listing 4.2 (Using Settype)
Listing 4.3 (Casting variables)
Listing 4.4 (Defining a constant)

Listing 5.1 (If statement)
Listing 5.2 (If else statement)
Listing 5.3 (If else elseif statement)
Listing 5.4 (Switch statement)
Listing 5.5 (? Operator)
Listing 5.6 (While statement)
Listing 5.7 (Do While statement)
Listing 5.8 (For statement)
Listing 5.9 (Loop with division)
Listing 5.10 (Using the break statement OR ways to write unstructured spagetti code!)
Listing 5.11 (Using the continue statement)
Listing 5.12 (Nesting loops)
Listing 5.13 (Code block with multiple prints)
Listing 5.14 (Returning to HTML mode within a code block)

Listing 6.1 (Calling a built in function abs() )
Listing 6.2 (Declaring a function)
Listing 6.3 (Declaring a function that requires arguments)
Listing 6.4 (A function that returns a value)
Listing 6.5 (Calling a function dynamically)
Listing 6.6 (Variable scope, declared inside a function is not available outside function)
Listing 6.7 (Variable scope, declared outside function not available inside function)
Listing 6.8 (Accessing global variables)
Listing 6.9 (Global statement used to remember variables between function calls)
Listing 6.10 (Static statement to remember values between function calls)
Listing 6.11 (A function that requires two arguments)
Listing 6.12 (A function with an optional argument)
Listing 6.13 (Parsing an argument to a function by value)
Listing 6.14 (Pass argument to function by reference)
Listing 6.15 (Creating an anonymous function on the fly)d
Listing 6.16 (Testing for function existence)

Listing 7.1 (Multidimensional Array)
Listing 7.2 (Looping through an associative array with foreach)
Listing 7.3 (Looping through a multidimensional array)
Misc Chapter 7 (array_merge, array_push, array_shift, array_slice, sort and asort)

Listing 10.1 (Include file 10.2)