This conversation has been locked due to inactivity. Please create a new post.
Split a string where there are spaces, put it into an array and then get the first and last items in the array (get a fistname and lastname variables from the string "John Smith")
I guess what I want to do is fairly simple but can't figure out how to do it and there is not much documentation with examples to help me out.
I want to take the string "John Smith" and split it at the space and create two variables
1) firstName: John
2) lastName: Smith
cannot fot the lifge of me figure out how to get this to work. Have tried splitting the string then using get to pull out the first and last items in the array but to no avail. Any help is much appreciated.