note 7310 deleted from function.explode by jimw

From: Date: Fri, 07 Dec 2001 21:11:30 +0000
Subject: note 7310 deleted from function.explode by jimw
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-21993@lists.php.net to get a copy of this message
EXPLODE and SPLIT have the same idea, but they're not the same. EXPLODE breaks up a string using another string as a delimiter, whereas SPLIT uses a regular expression. Thus, if your delimiter is a simple string, use explode. If its something more complicated that you can describe using a regex, then use split. <p> Thanks to the authors of the PHP manual from whom I borrowed that explanation almost word for word.

« previous php.notes (#21993) next »