public static function concatPath()
    {
        $args = func_get_args();
        $len = count($args);
        if ($len == 0) {
            return '';
        }
        $path = $args[0];
        for ($i = 1; $i < $len; $i++) {
            $path = rtrim($path, '/') . '/' . ltrim($args[$i], '/');
        }
        return $path;
    }
public static function concatPath()
    {
        $args = func_get_args();
        $len = count($args);
        if ($len == 0) {
            return '';
        }
        $path = $args[0];
        for ($i = 1; $i < $len; $i++) {
            $path = rtrim($path, '/') . '/' . ltrim($args[$i], '/');
        }
        return $path;
    }
public static function concatPath ( ) { $ args = func_get_args ( ) ; $ len = count ( $ args ) ; if ( $ len == 0 ) { return '' ; } $ path = $ args [ 0 ] ; for ( $ i = 1 ; $ i < $ len ; $ i ++ ) { $ path = rtrim ( $ path , '/' ) . '/' . ltrim ( $ args [ $ i ] , '/' ) ; } return $ path ; }
Concatenate paths, making sure there is no double path separator
Concatenate paths making sure there is no double path separator