note 11456 deleted from function.explode by jimw
| From: | jimw@php.net | Date: | Fri, 07 Dec 2001 21:22:54 +0000 |
| Subject: | note 11456 deleted from function.explode by jimw | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-22002@lists.php.net to get a copy of this message | ||
Thanks to others contributions I was able to easily separate my keywords for search
I made a slight adjustment to paul@netkick.com 's function (23-Jan-2000 11:51)so that it would
avoid
the problem noted by boris@alum.mit.edu(15-Mar-1999 12:03)
function getKeywordsArray($keywords){
//replace the whitespace with a comma
$keywords = ereg_replace(" ",",",$keywords);
while (ereg(",,", $keywords)){
$keywords = ereg_replace(",,",",",$keywords);
}
$seperated = explode(",",$keywords);
return $seperated;
}