split is deprecated in php5.4, now use explode