I need slice a string and append intro a array, the string is like this:
"stringPartOne stringPartTwo stringPartThree"
I want to have a array like this:
['stringPartOne', 'stringPartTwo', 'stringPartThree']
How can I slice this string and append into a array considering that the number of elements is dynamic
$arr = explode(" ", $str)?