Deprecated: The each() function is deprecated. This message will be suppressed on further calls in /home/zhenxiangba/zhenxiangba.com/public_html/phproxy-improved-master/index.php on line 456
PHP: tidy_get_opt_doc - Manual
[go: Go Back, main page]

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

search for in the

tidy_get_output" width="11" height="7"/> <tidy_get_html
Last updated: Mon, 05 Feb 2007

view this page in

tidy_get_opt_doc

(PHP 5 >= 5.1.0)

tidy_get_opt_doc — 与えられたオプション名に対するドキュメントを返す

説明

Procedural style:

string tidy_get_opt_doc ( tidy object, string optname )

Object oriented style:

string tidy->getOptDoc ( string optname )

tidy_get_opt_doc() は、 与えられたオプション名に対するドキュメントを返します。

注意: この関数を有効にするには、少なくとも2005年4月25日以降の libtidy が必要です。

パラメータ

object

Tidy オブジェクトを指定します。

optname

オプション名を指定します。

返り値

オプションが存在し、かつドキュメントが利用可能であれば、文字列を返します。 その他の場合は FALSE を返します。

例 2367. 全てのオプションについてのドキュメントとデフォルト値をプリントする

<?php

$tidy
= new tidy;
$config = $tidy->getConfig();

ksort($config);

foreach (
$config as $opt => $val) {

   if (!
$doc = $tidy->getOptDoc($opt))
      
$doc = 'no documentation available!';

  
$val = ($tidy->getOpt($opt) === true)  ? 'true'  : $val;
  
$val = ($tidy->getOpt($opt) === false) ? 'false' : $val;

   echo
"<p><b>$opt</b> (default: '$val')<br />".
        
"$doc</p><hr />\n";
}

?>

参考

tidy_get_config()
tidy_getopt()



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

tidy_get_output" width="11" height="7"/> <tidy_get_html
Last updated: Mon, 05 Feb 2007
 
 
show source | credits | sitemap | contact | advertising | mirror sites