<?php $num = "2.75"; // Cast to integer $int = (int)$num; echo gettype($int); // Outputs: integer echo $int; // Outputs: 2 // Cast to float $float ...
確定! 回上一頁