split is deprecated in PHP5.3 so use explode instead