Question: In this project, you will identify and correct the logic flaws in a while statement. Create a new document in your text editor. Typethedeclaration,element,document head,
In this project, you will identify and correct the logic flaws in a while statement.
-
Create a new document in your text editor.
-
Typethedeclaration,element,document head, and
element. Use the strict DTD and While Logic as the content of theelement. -

3. Create a script section in the document body that includes the following code: 100) { $Numbers[] = $Count; ++$Count; foreach ($Count as $CurNum) echo "
$CurNum
"; } ?> 4. The code you typed in the preceding step should fill the array with the numbers 1 through 100 and then display them on the screen. However, the code contains several logic flaws that prevent it from running correctly. Identify and correct the logic flaws. 5. Save the document as WhileLogic.php in the Projects direc- tory for Chapter 2, and then upload the document to the server. 6. Open the WhileLogic.php file in your web browser by enter- ing the following URL: http://
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
