This is a test!\n"; echo "

This is still a test!

"; #create some variables and output them $age1 = 57; $age2 = 74; $avg_age = ($age1 + $age2) / 2; echo "

$avg_age

"; #if you want to output a dollar sign that isn't a variable echo "

\$animals

"; #do a for loop to compute the squares for ($i = 0; $i < 10; $i++) { print "$i squared is " . $i * $i . "
\n"; } #if you need to clear a variable use unset #unset($i); #see what is in the $i variable after the loop echo "

The value of i is $i

"; #create an array and put a values in it $arr = array(); $arr[2] = "test1"; $arr["two"] = "test2"; #print the array print_r($arr); #create a function to compute the average of two numbers function average($val1, $val2){ return ($val1 + $val2) / 2; } #average the two numbers together and print them echo "

" . average($age1, $age2) . "

"; ?>