What is the difference between explode
and split
in php?
What is the difference between explode
and split
in php?
explode
splits strings.
split
also does this, except it has support for splitting using regular expressions.
preg_split
also does this and is 25-50% faster and has support for (IMO) much more extensible Perl-compatible regular expressions.