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