i'm looking for a way to split a string in several words, based on some delimiters.
For example the string word1&word2 !word3 word4 &word5
should give me an array with the following words:
word1
&word2
!word3
word4
&word5
How to reach that? I tried several solution with str_replace() but i cannot figure out the best way to obtain what i need. Maybe the solution could be using regular expressions, but i do not know how to use them.