In this project, you create and modify a script that stores interest rates in an array.
1. Create a new document in your text editor.
2. Type the < !DOCTYPE> declaration, < html> element, header information, and < body> element. Use the strict DTD and "Interest Array" as the content of the < title> element.
3. Add the following standard PHP script delimiters to the document body:
< ?php
?>
4. Add the following statements to the script section:
$InterestRate1 = .0725;
$InterestRate2 = .0750;
$InterestRate3 = .0775;
$InterestRate4 = .0800;
$InterestRate5 = .0825;
$InterestRate6 = .0850;
$InterestRate7 = .0875;
5. Modify the statements you added in the preceding step so the variables are saved in an array named $RatesArray by using the array() construct. Also, add statements to the program that print the contents of each array element.
6. Save the document as InterestArray.php in the Projects directory for Chapter 3, and then validate it with the WDG HTML Validator. After the document is valid, close it in your text editor, and then open it in your Web browser to see how it renders.
7. Close your Web browser window.