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

search for in the

tidy::html> <tidy::getStatus
[edit] Last updated: Fri, 07 Jun 2013

view this page in

tidy::head

tidy_get_head

(PHP 5, PECL tidy 0.5.2-1.0.0)

tidy::head -- tidy_get_headDevuelve un objeto tidyNode empezando con la etiqueta <head>

Descripción

Estilo orientado a objetos

tidyNode tidy::head ( void )

Estilo por procedimientos

tidyNode tidy_get_head ( tidy $object )

Devuelve un objeto tidyNode empezando por la etiqueta <head>.

Parámetros

object

El objeto Tidy.

Valores devueltos

Devuelve el objeto tidyNode.

Ejemplos

Ejemplo #1 Ejemplo de tidy::head()

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

$tidy tidy_parse_string($html);

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

El resultado del ejemplo sería:

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

Notas

Nota: Esta función está disponible sólo con Zend Engine 2 (PHP >= 5.0.0).

Ver también

  • tidy::body() - Devuelve un objeto tidyNode empezando con la etiqueta <body>
  • tidy::html() - Devuelve un objeto tidyNode empezando con la etiqueta <html>


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

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