<?phpfunction convertToInt ($string) { return $string * 1;}echo(convertToInt("-45"));?>
Standard input is empty
-45
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!