public static function concat()
    {
        $args = func_get_args();
        $separator = array_shift($args);

        $output = null;
        foreach ($args as $string) {
            $output .= $string . $separator;
        }

        $output = rtrim($output, $separator);
        return $output;
    }
public static function concat()
    {
        $args = func_get_args();
        $separator = array_shift($args);

        $output = null;
        foreach ($args as $string) {
            $output .= $string . $separator;
        }

        $output = rtrim($output, $separator);
        return $output;
    }
public static function concat ( ) { $ args = func_get_args ( ) ; $ separator = array_shift ( $ args ) ; $ output = null ; foreach ( $ args as $ string ) { $ output .= $ string . $ separator ; } $ output = rtrim ( $ output , $ separator ) ; return $ output ; }
Concat string with add string by separator
@param string $separator
@param string $string1
@param string $string2
@return string
Concat string with add string by separator