public static function join($strings, $separator, $start = 0, $count = -1)
    {
        $string = '';

        $end = $count == -1 ? Collection::count($strings) : $count;

        for ($i = $start; $i < $end; $i++) {
            $string .= $strings[$i].$separator;

            if ($i == ($end - 1)) {
                $string .= $separator;
            }
        }

        return $string;
    }
public static function join($strings, $separator, $start = 0, $count = -1)
    {
        $string = '';

        $end = $count == -1 ? Collection::count($strings) : $count;

        for ($i = $start; $i < $end; $i++) {
            $string .= $strings[$i].$separator;

            if ($i == ($end - 1)) {
                $string .= $separator;
            }
        }

        return $string;
    }
public static function join ( $ strings , $ separator , $ start = 0 , $ count = - 1 ) { $ string = '' ; $ end = $ count == - 1 ? Collection :: count ( $ strings ) : $ count ; for ( $ i = $ start ; $ i < $ end ; $ i ++ ) { $ string .= $ strings [ $ i ] . $ separator ; if ( $ i == ( $ end - 1 ) ) { $ string .= $ separator ; } } return $ string ; }
Join array element to string.

@param array  $strings
@param string $separator
@param int    $start
@param int    $count

@return simplexml_load_string
Join array element to string .