string convet to int php

PHP
intval($string);
Source

Also in PHP: