using explode or greg_split to replace the split function.
ereg_replace -> preg_replace