<?php $num = (int)("4:44"); var_dump ($num);
Standard input is empty
int(4)
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!