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