Multiple choice general knowledge

What will be the output of PHP code ?

  1. 98

  2. 98.8

  3. 98.8 degrees

  4. degrees

Reveal answer Fill a bubble to check yourself
C Correct answer
Explanation

The casting operations (double)$data, (int)$data don't modify the original variable \$data - they only return converted values. Since these casts aren't assigned to anything, \$data remains unchanged as "98.8degrees". The echo statement outputs the original value. Option C shows the closest match despite the spacing difference.