Thanks for showing some alternatives to my approach, BM. I didn't go any further than to show how explode is based on the array concept, thinking that an obvious newbie might be best off starting with fundamentals. But then maybe he is ready to jump into using "a floor and a modulus" to derive simple array elements. Again, thanks for pointing out how incomplete my anwer was.
P.S. You left out regular expressions.