Hyvor Developer
  Home   Download   Copy
Code
<?php
$x = 5.35;
$y = (int) $x; // cast $x to integer
var_dump($y);
Result