# Join

TIP

  • join(<array>, <separator>)
  • Converts an array to a string.

# Parameters

  • <array> The array that will be converted to a string
  • <separator> The string that will separate the array items

# Example

1: $array$ = array('one', 'two', 'three', 'four')
2: $text$ = join($text$, ' | ')
3: sendMessage($player$, $text$)

# Output

"one | two | three | four"
ON THIS PAGE