If explode uses a string and split uses regex then what does preg_split use? What is the difference between split and preg_split? Just curious.
"explode() takes a delimiter to split by ... split() takes a regular expression"
"documentation says that preg_split() is faster than split()"
http://blog.brianhartsock.com/2007/06/11/php-explode-vs-split/
"preg_split(), which uses a Perl-compatible regular expression syntax, is often a faster alternative to split(). If you don't require the power of regular expressions, it is faster to use explode(), which doesn't incur the overhead of the regular expression engine."
- http://uk3.php.net/split
Some speed stats: http://forums.codewalkers.com/php-coding-7/split-vs-preg-split-vs-explode-71423.html
So in answer to your question, preg_split uses regex like split. However, I don't know what the exact difference is.