src/Transformatika/Utility/Fn.php
public static function timeToSec($time)
    {
        // hh:mm:ss
        $split_time = explode(':', $time);
        $hour       = $split_time[0] * 3600;
        $minutes    = $split_time[1] * 60;
        $second     = $split_time[2] * 1;

        $timetosec = (int)($hour + $minutes + $second);

        return $timetosec;
    }
public static function timeToSec($time)
    {
        // hh:mm:ss
        $split_time = explode(':', $time);
        $hour       = $split_time[0] * 3600;
        $minutes    = $split_time[1] * 60;
        $second     = $split_time[2] * 1;

        $timetosec = (int)($hour + $minutes + $second);

        return $timetosec;
    }
public static function timeToSec ( $ time ) { // hh:mm:ss
 $ split_time = explode ( ':' , $ time ) ; $ hour = $ split_time [ 0 ] * 3600 ; $ minutes = $ split_time [ 1 ] * 60 ; $ second = $ split_time [ 2 ] * 1 ; $ timetosec = ( int ) ( $ hour + $ minutes + $ second ) ; return $ timetosec ; }
Time To Sec
@param  Time
@return String
Time To Sec