I have a string that I trim first to remove extra characters and store it to a variable.
sampel output:
variable: place1 place2
Now what I want to do is store it to an array. But how can I do that? is there a function that will detect if there is a white space? because every white space that it detects I would want the string to be stored in an array.
Any method or help is greatly appreciated! Thanks!
explode() is the function you’re looking for.