Replacing call to deprecated function split(), with explode()