what will be the output of the program if the value of ‘cate’ remains 5?
1. <?php
2. $cate=5;
3. …
4. …
5. If ($cate==5)
6. {
7. ?>
8. Correct category!
9. <?php
10. } else {
11. ?>
12. Incorrect category!
13. <?php
14. }
15. ?>
Correct Answer: Error due to use of invalid operator in line 6:”if ($cate==5)”
Explanation:
Note: This Question is unanswered, help us to find answer for this one
More PHP MCQ Questions