Hyvor Developer
  Home   Download   Copy
Code
<?php
$x = 7;
$y = (float) $x; // $y is 7, but float
var_dump($y);
Result