Menu

Identify 5 syntax errors from the following code and write the

Identify 5 syntax errors from the following code and write the correct code in the word document. [2.5 marks] (WRITE THE LINE NUMBER ALONG WITH YOUR CORRECT CODE IN YOUR ANSWER SHEET) ed out of question 1 <?php 2 echo <h4>Kitchen Appliances</h4>; 3 Ska = array(array(“Microwave”,22), (“Blender”,18), array(“Grinder”,34), array(“Cooker”,10)); 4 for (Srow = 0; row <4 Srow++) 5 { 6 for (Scol = 0: Scol <2: Scol++) 7 { 8 echo Ska[Srow][Sc]: 9 echo 10} 11 echo “<br>”; 12 } 13 ?> !!!!

Expert Answer

 

The answer is, Line number ErrorCode Correct code Description 2 echo Kitchen Appliances

OR