Тип литья в PHP
$x = 2.5;
$y = (int) $x; // cast $x to integer
kinjal suryavanshi
$x = 2.5;
$y = (int) $x; // cast $x to integer