Re: Keywords Extraction
| From: | Brian Clark | Date: | Fri, 05 Jan 2001 00:38:13 +0000 |
| Subject: | Re: Keywords Extraction | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-32779@lists.php.net to get a copy of this message | ||
Hello Matt,
(MS == "Matt Stone") matt@planetveggie.com writes:
MS> Hi, I have a list of keywords for a each images in a image library
MS> I am building like so: apple,pie,yum,pastry
<?php
$string = 'apple,pie,yum,pastry';
$array = explode(',',$string);
while(list(,$val) = each($array))
{
print "$val<br>";
}
?>
MS> How do I go through this string and extract each word between the
MS> commas and put it into array?
http://www.php.net/manual/html/function.explode.html
MS> Help much appreciated,
-Brian