public static function join_paths($part = null)
    {
        $args = func_get_args();
        if (count($args) === 1 && is_array($args[0])) {
            $args = $args[0];
        }

        $parts = array();
        foreach ($args as $arg) {
            $part = trim($arg, ' \\/');
            if ($part) {
                $parts[] = $part;
            }
        }

        return implode('/', $parts);
    }
public static function join_paths($part = null)
    {
        $args = func_get_args();
        if (count($args) === 1 && is_array($args[0])) {
            $args = $args[0];
        }

        $parts = array();
        foreach ($args as $arg) {
            $part = trim($arg, ' \\/');
            if ($part) {
                $parts[] = $part;
            }
        }

        return implode('/', $parts);
    }
public static function join_paths ( $ part = null ) { $ args = func_get_args ( ) ; if ( count ( $ args ) === 1 && is_array ( $ args [ 0 ] ) ) { $ args = $ args [ 0 ] ; } $ parts = array ( ) ; foreach ( $ args as $ arg ) { $ part = trim ( $ arg , ' \\/' ) ; if ( $ part ) { $ parts [ ] = $ part ; } } return implode ( '/' , $ parts ) ; }
Joins one or more segments together to build a Filename identifier.

Note that the result will not have a leading slash, and should not be used
with local file paths.

@param string $part,... Parts
@return string
Joins one or more segments together to build a Filename identifier .