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

tidy get config function syntax tag tutorial 2013





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

Php tidy get config () function

Write your php code

 
<?php ?>

Php Result


Your code below



(PHP 5)

tidy_get_config --  Get current Tidy configuration

Syntax

Procedural style:

array tidy_get_config ( tidy object )

Object oriented style:

array tidy->getConfig ( void )

tidy_get_config() returns an array with the configuration options in use by the given tidy object.

For an explanation about each option, visit http://tidy.sourceforge.net/docs/quickref.html.

Example 1. tidy_get_config() example

<?php
$html
= '<p>test</p>';
$config = array('indent' => TRUE,
                
'output-xhtml' => TRUE,
                
'wrap' => 200);

$tidy = tidy_parse_string($html, $config);

print_r(tidy_get_config($tidy));
?>

The above example will output:

Array
(
    [indent-spaces] => 2
    [wrap] => 200
    [tab-size] => 8
    [char-encoding] => 1
    [input-encoding] => 3
    [output-encoding] => 1
    [newline] => 1
    [doctype-mode] => 1
    [doctype] => 
    [repeated-attributes] => 1
    [alt-text] => 
    [slide-style] => 
    [error-file] => 
    [output-file] => 
    [write-back] => 
    [markup] => 1
    [show-warnings] => 1
    [quiet] => 
    [indent] => 1
    [hide-endtags] => 
    [input-xml] => 
    [output-xml] => 1
    [output-xhtml] => 1
    [output-html] => 
    [add-xml-decl] => 
    [uppercase-tags] => 
    [uppercase-attributes] => 
    [bare] => 
    [clean] => 
    [logical-emphasis] => 
    [drop-proprietary-attributes] => 
    [drop-font-tags] => 
    [drop-empty-paras] => 1
    [fix-bad-comments] => 1
    [break-before-br] => 
    [split] => 
    [numeric-entities] => 
    [quote-marks] => 
    [quote-nbsp] => 1
    [quote-ampersand] => 1
    [wrap-attributes] => 
    [wrap-script-literals] => 
    [wrap-sections] => 1
    [wrap-asp] => 1
    [wrap-jste] => 1
    [wrap-php] => 1
    [fix-backslash] => 1
    [indent-attributes] => 
    [assume-xml-procins] => 
    [add-xml-space] => 
    [enclose-text] => 
    [enclose-block-text] => 
    [keep-time] => 
    [word-2000] => 
    [tidy-mark] => 
    [gnu-emacs] => 
    [gnu-emacs-file] => 
    [literal-attributes] => 
    [show-body-only] => 
    [fix-uri] => 1
    [lower-literals] => 1
    [hide-comments] => 
    [indent-cdata] => 
    [force-output] => 1
    [show-errors] => 6
    [ascii-chars] => 1
    [join-classes] => 
    [join-styles] => 1
    [escape-cdata] => 
    [language] => 
    [ncr] => 1
    [output-bom] => 2
    [replace-color] => 
    [css-prefix] => 
    [new-inline-tags] => 
    [new-blocklevel-tags] => 
    [new-empty-tags] => 
    [new-pre-tags] => 
    [accessibility-check] => 0
    [vertical-space] => 
    [punctuation-wrap] => 
    [merge-divs] => 1
)

See also tidy_reset_config() and tidy_save_config().

Php tidy get config Function syntax tag

tidy get config 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 config 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