original_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;
      }
code: 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;
      }
code_tokens: 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 ; }
docstring: Join array element to string.
  
  @param array  $strings
  @param string $separator
  @param int    $start
  @param int    $count
  
  @return simplexml_load_string
docstring_tokens: Join array element to string .