Question: You wrote following script to check for the right category:
1 <?php
2 $cate=5;
3 …
4 …
5
6 if ($cate==5)
7 {
8 ? >
9 Correct category!
10 <?php
11 }else{
12 ? >
13 Incorrect category!
14 < ? php
15 }
16 ? >
What will be the output of the program if value of ‘cate’ remains 5?
ACorrect category!
BIncorrect category!
CError due to use of invalid operator in line 6: “if ($cate==5)”
Dsyntax at line 8, 10, 12 and Error due to incorrect 14
Note: Not available