[Support] Split function for handling text strings
There is some function to separate a certain text string based on a specific character, something like this:
split ("String / dlkf / lkdf / ks", "/");
For each "/" add me to an array
strTok(string, token)is what you're looking for. It returns an array of strings.
strTok("test,string,here", ",")will return
["test", "string, here"]
strTok("test;string;here", ";")will return
["test", "string", "here"]
@TheHiddenHour excellent, just what I'm looking for, I thank you.
Now, you know of some function that helps me to know if a certain word is inside an array that contains a word in each position.
@Kalitos Can you be a bit more specific? If you want to know if an array contains a value,
isInArray(array, value)should be able to do it.
@TheHiddenHour It is just what I need. Thank you.
One last question.
Is the syntax of this line correct?
Or it should be like this:
@Kalitos The second one is correct.