downloads | documentation | faq | getting help | mailing lists | licenses | wiki | reporting bugs | php.net sites | links | conferences | my php.net

search for in the

tidy::html> <tidy::getStatus
Last updated: Fri, 13 Nov 2009

view this page in

tidy::head

tidy_get_head

(PHP 5, PECL tidy 0.5.2-1.0.0)

tidy::head -- tidy_get_headTidy パースツリーの <head> タグから始まる tidyNode オブジェクトを返す

説明

手続き型

tidyNode tidy_get_head ( tidy $object )

オブジェクト指向型

tidyNode tidy::head ( void )

Tidy パースツリーの <head> タグから始まる tidyNode オブジェクトを返します。

パラメータ

object

Tidy オブジェクト。

返り値

tidyNode オブジェクトを返します。

例1 tidy::head() の例

<?php
$html 
'
<html>
  <head>
    <title>test</title>
  </head>
  <body>
    <p>paragraph</p>
  </body>
</html>'
;

$tidy tidy_parse_string($html);

$head $tidy->head();
echo 
$head->value;
?>

上の例の出力は以下となります。

<head>
<title>test</title>
</head>

注意

注意: この関数は、Zend Engine 2、つまり、PHP >= 5.0.0でのみ利用可能です。

参考

  • tidy::body() - Tidy パースツリーの タグから始まる tidyNode オブジェクトを返す
  • tidy::html() - Tidy パースツリーの タグから始まる tidyNode オブジェクトを返す


add a note add a note User Contributed Notes
tidy::head
There are no user contributed notes for this page.

tidy::html> <tidy::getStatus
Last updated: Fri, 13 Nov 2009
 
 
show source | credits | sitemap | contact | advertising | mirror sites