A

Admin • 832.27K Points
Coach

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

Code:
echo gettype(10.5);
  • (A) double
  • (B) float
  • (C) integer
  • (D) string
  • Correct Answer - Option(A)
  • Views: 17
  • Filed under category PHP
  • Hashtags:

Explanation by: Admin
In PHP, gettype() returns 'double' for float values.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.

Be the first to start discuss.