Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online

tidy get head function syntax tag tutorial 2013 Donate at flattr Flattr this





Alert! Connect with 10,000 Chating Online. Join Now

Php tidy get head () function

Write your php code

 
<?php ?>

Php Result


Your code below



(PHP 5)

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

Syntax

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.

Example 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;
?>

The above example will output:

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

Note: This function is only available with Zend Engine 2, this means PHP >= 5.0.0.

See also tidy_get_body() and tidy_get_html().

Php tidy get head Function syntax tag

tidy get head php code on this is provided for your study purpose, it will guide you to know how create and design a website using php. use it to practice and train your self online



Php tidy get head syntax tutorial

php tutorial guide and code design are for easy learning and programming. The code practice section provided at the top is for practising of this syntax. Use the code section up to practice your php programming online. Learning php is very easy, all you need is to use the examples on this site and practice them to perfect your skills.


Function index

Variables

Expressions

Operators

Control-Structures

Cookies

Array

Date & Time

Directory function

File

Image

Operators

Form data handling

Mathematics operators

Mail

Php Mysql

Network Functions

Strings

php tutorial guides,functions, classes, code examples and tags for creating simple dynamic site to mysql database driven sites
 
 
Htaccess    html   Php    javascript   Asp   css    maths  Past Questions  Practice Tests Online