![]() |
|
|
+ Search |
![]()
|
Feb 27th, 2008 23:56
dman, Jakub Vrana, Paul O\'Donnell, http://www.ttnr.org
You can use something like:
$keywords = "";
preg_match_all('~<meta([^>]*)~i', $file, $matches);
foreach ($matches[1] as $attribs) {
if (preg_match('~name=[\'"]Keywords~i', $attribs)
&& preg_match('~content=[\'"]([^\'"]+)~i', $attribs, $value)) {
$keywords = $value[1];
}
}