# Split

TIP

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

# Parameters

  • <string> The string that will be converted to an array
  • <separator> The string that will split the array items

# Example

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

# Output

[0 => "one", 1 => "two", 2 => "three", 3 => "four"]
ON THIS PAGE