Q. What will be the output?
var_dump(5 == "5");

Code:
var_dump(5 == "5");
  • (A) bool(false)
  • (B) bool(true)
  • (C) int(1)
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) bool(true)
Explanation: == performs type juggling, so 5 equals '5'.
Explanation by: Roshan
== performs type juggling, so 5 equals '5'.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
43
Total Visits
πŸ“½οΈ
8 mo ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
87%
Success Rate