note 20479 deleted from function.get-meta-tags by philip
| From: | philip@php.net | Date: | Tue, 21 Jan 2003 19:00:08 +0000 |
| Subject: | note 20479 deleted from function.get-meta-tags by philip | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-42533@lists.php.net to get a copy of this message | ||
If your metadata tags contain characters that PHP can't use in a named array they'll get
converted to the underscore character.
<meta name="geo.position" content="49.33;-86.59">
You can't get it using the tag's name as an array won't let you get [geo.position].
But it would let you get [geo_position] instead.
Here's a page that shows what's returned:
<?
$url = "http://www.billsaysthis.com/";
$metatags = @get_meta_tags("$url",1);
if (!$metatags) $metatags=@get_meta_tags("$url/",1);
while (list($name, $contents) = each($metatags))
{
echo "<b>$name</b> - $contents<br>";
}
?>