Q. What will be the output of the following code?

Code:
echo gettype(10.5);
  • (A) double
  • (B) float
  • (C) integer
  • (D) string
πŸ’¬ Discuss
βœ… Correct Answer: (A) double
Explanation: In PHP, gettype() returns 'double' for float values.
Explanation by: Rati Dubey
In PHP, gettype() returns 'double' for float values.

πŸ’¬ Discussion


πŸ“Š Question Analytics

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