This is a test!\n"; 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 . "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) . "
"; ?>