You might want to perform some tests before you use explode. In this case, explode() can return false if the delimiter is an empty string. I think some tests with incorrect values can be useful to see how this is handled.