Replaced split function with explode.

Function split has been deprecated in php 5.3.0 and higher.