<?php
$data="98.8degrees";
(double)$data;
(int)$data;
(string)$data;
echo $data;
?>
I was surprised/confused when the actual output was 98.8 degrees
I thought when $data uses (double), it converts to 98.8. Then when moving to (int), it becomes 98 and forth But I guess my analogy is wrong. Can someone explain to me how the output became like that?