Q. What will be the result of: echo 10 / 3; ?

  • (A) 3
  • (B) 3.3333
  • (C) 3.0
  • (D) Error
πŸ’¬ Discuss
βœ… Correct Answer: (B) 3.3333
Explanation: In PHP, division of integers results in a float if not divisible exactly.
Explanation by: Rati Dubey
In PHP, division of integers results in a float if not divisible exactly.

πŸ’¬ Discussion


πŸ“Š Question Analytics

πŸ‘οΈ
84
Total Visits
πŸ“½οΈ
1 y ago
Published
πŸŽ–οΈ
Rati Dubey
Publisher
πŸ“ˆ
95%
Success Rate