Agregue dos números como cadena en PHP
$num = "3.14";
$int = (int)$num;
$float = (float)$num;
Condemned Chicken
$num = "3.14";
$int = (int)$num;
$float = (float)$num;
<?php
$x=15;
$y=30;
$z=$x+$y;
echo "Sum: ",$z;
?>