PHP: tidy_get_head - Manual

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

search for in the

tidy_get_html_ver tidy_get_error_buffer

Last updated: Sat, 27 Jan 2007

view this page in

# tidy_get_head

(PHP 5)

tidy_get_head -- Returns a tidyNode Object starting from the <head> tag of the tidy parse tree

## Description

Procedural style:

tidyNode tidy_get_head ( tidy object )

Object oriented style:

tidyNode tidy->head ( void )

This function returns a tidyNode object starting from the <head> tag of the tidy parse tree.

Пример 1. tidy_get_head() example

`<?php
$html = '
<html>
<head>
<title>test</title>
</head>
<body>
<p>paragraph</p>
</body>
</html>';
$tidy = tidy_parse_string($html);
$head = tidy_get_head($tidy);
echo $head->value;
?>`

Результат выполнения данного примера:

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

> Замечание: Эта функция доступна только в Движке Zend 2, что означает PHP >= 5.0.0.

See also tidy_get_body() and tidy_get_html().

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

Last updated: Sat, 27 Jan 2007
show source | credits | stats | sitemap | contact | advertising | mirror sites
Copyright © 2001-2007 The PHP Group
All rights reserved.
This mirror generously provided by: Yahoo! Inc.
Last updated: Sat Mar 10 10:36:09 2007 PST