Web студия "GrandView"
  Главная   Написать Контакты
   
   
О проекте
Руководство php
 

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 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
 
 
Новости
11 июля 2007
Сайт запущен
© 2007 info@grandviewstudio.com

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 324

Deprecated: Function set_magic_quotes_runtime() is deprecated in /home/sites/grandviewstudiocom/www/65f67d67a94ad980786580ae69e11c07/sape.php on line 330
Z058440144362 Z348613067571