<?php $string = '100x';$int = (int) $string;var_dump($int); ?>
Standard input is empty
int(100)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!