Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: tidy_get_body - Manual
[go: Go Back, main page]

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

search for in the

tidy_get_config" width="11" height="7"/> <tidy_error_count
Last updated: Mon, 05 Feb 2007

view this page in

tidy_get_body

(PHP 5)

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

説明

手続き言語型スタイル:

tidyNode tidy_get_body ( tidy object )

オブジェクト指向言語型スタイル:

tidyNode tidy->body ( void )

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

例 2362. tidy_get_body() の例

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

$tidy = tidy_parse_string($html);

$body = tidy_get_body($tidy);
echo
$body->value;
?>

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


<body>
<p>paragraph</p>
</body>

      

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

tidy_get_head(), tidy_get_html() も参照ください。



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

 
show source | credits | sitemap | contact | advertising | mirror sites