- var_dump: documentation ( source)
- preg_match: documentation ( source)
<?php
$t1 = '00:08:10.38474';
if (preg_match('/^(\d{2}):(\d{2}):(\d{2})\.(\d{5})$/', $t1, $matches)) {
[, $hours, $minutes, $seconds, $milliseconds] = $matches;
var_dump($hours, $minutes, $seconds, $milliseconds); // "00", "08", "10", "38474"
}