fork download
  1. <?php
  2.  
  3. $tempo_total= "30:4:44";
  4.  
  5. $num = (int)$tempo_total;
  6.  
  7. var_dump ($num);
Success #stdin #stdout 0.02s 23740KB
stdin
Standard input is empty
stdout
int(30)