What will be the output of PHP code ?
-
98
-
98.8
-
98.8 degrees
-
degrees
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.