public static function totalSegments() : Int
    {
        $segmentEx     = array_diff(self::segmentArray(), ["", " "]);
        $totalSegments = count($segmentEx);

        return $totalSegments;
    }
public static function totalSegments() : Int
    {
        $segmentEx     = array_diff(self::segmentArray(), ["", " "]);
        $totalSegments = count($segmentEx);

        return $totalSegments;
    }
public static function totalSegments ( ) : Int { $ segmentEx = array_diff ( self :: segmentArray ( ) , [ "" , " " ] ) ; $ totalSegments = count ( $ segmentEx ) ; return $ totalSegments ; }
Get Total Segments

@param int
Get Total Segments