Replaced deprecated split()'s with explode()'s