"; echo "
"; // boolToText(0); boolToText(1, 2); echo "
"; boolToText(0, 3); echo "
"; boolToText(1, 5); echo "
"; echo "
"; echo "B)"; echo "
"; echo "
"; function displayStrings(){ echo "Welcome to the following " . func_num_args() . " Provinces:"; echo "
"; $number = func_num_args(); for($i = 0; $i < $number; $i++){ echo func_get_arg($i) . "
"; } } // call the function by passing in Gauteng and North West displayStrings("Gauteng ", "North West"); echo "
"; // call the function by passing in five names displayStrings("Tshwane ", "Durban ", "Polokwane ", "Pretoria"); echo "
"; echo "C)"; echo "
"; echo "
"; //variable‐length parameter list. /* First method to create an associate array. */ $products = array("Telephone"=>95, "Router"=>90, "Car"=>96, "Tv"=>93, "Computer"=>98); /* Second method to create an associate array. */ $item_one["Telephone"] = 95; $item_one["Router"] = 90; $item_one["Car"] = 96; $item_one["Tv"] = 93; $item_one["Computer"] = 98; //Products names and prices echo "Marks for student one is:"; echo"
"; echo "Telephone: " . $item_one["Telephone"]; echo"
"; echo "Router: " . $item_one["Router"]; echo"
"; echo "Car: " . $item_one["Car"]; echo"
"; echo "TV: " . $item_one["Tv"]; echo"
"; echo "Computer: " . $item_one["Computer"]; echo "
"; echo "
"; ?>