πŸ“Š PHP
Q. What will be the output?
Code:
$x = 0;
if($x) {
  echo "True";
} else {
  echo "False";
}
  • (A) True
  • (B) False
  • (C) Error
  • (D) 0
πŸ’¬ Discuss
βœ… Correct Answer: (B) False

Explanation: 0 is treated as false.

Explanation by: Roshan
0 is treated as false.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
2
Total Visits
πŸ“½οΈ
8 d ago
Published
πŸŽ–οΈ
Roshan
Publisher
πŸ“ˆ
89%
Success Rate