intval php

PHP
intval($string);
Source

Also in PHP: