¸ÞŸÅ±׸¦ ÃßÃâÇØÁÖ´Â get meta tags ÇÔ¼ö |
|
|
 |
10³â Àü |
array get_meta_tags ( string $filename [, bool $use_include_path ] ) (PHP 4, PHP 5)
ÆÄÀÏ¿¡¼ <head> ¿Í </head> »çÀÌÀÇ ¸ðµç ¸ÞŸ ÅÂ±× ³»¿ë ¿ä¼Ò¸¦ ÃßÃâÇÏ¿© ¹è¿·Î ¹ÝȯÇÕ´Ï´Ù.
¿¹Á¦(ex #1
<meta name="author" content="name">
<meta name="keywords" content="php documentation">
<meta name="DESCRIPTION" content="a php manual">
<meta name="geo.position" content="49.33;-86.59">
</head>
<?php
$tags = get_meta_tags('http://www.example.com/');
// Å°°¡ ÀüºÎ ¼Ò¹®ÀÚÀÌ°í, .ÀÌ _·Î ġȯµÇ¾ú´Ù´Â Á¡¿¡ ÁÖÀÇÇϽʽÿÀ.
echo $tags['author']; // °á°ú: name
echo $tags['keywords']; // °á°ú: php documentation
echo $tags['description']; // °á°ú: a php manual
echo $tags['geo_position']; // °á°ú: 49.33;-86.59
?>
|
|
̵̧ : 525 |
̵̧
¸ñ·Ï
|
|