convert string to int php 7

PHP
intval($string);$id='5'
$int =(int)$id;$num = "3.14";
$int = (int)$num;
Source

Also in PHP: