|
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
Most Referenced Functions » google_pagerank() » preg_replace() » imagecreatefrompng() » site_pageranks() » imagepng() » imagedestroy() » imagestring() » imagecolorallocate() » htmlentities() » fopen() » preg_match() » header() » getimagesize() » htmlspecialchars() » ob_start() » session_start() » strstr() » ob_flush() » preg_match_all() » strpos() » setcookie() » flush() » str_replace() » array2vars() » nl2br() » preg_split() » ereg() » urlencode() » ereg_replace() » readgzfile() Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m. |
PHP Functions
Function: tidy_get_opt_doc (no version information, might be only in CVS) tidy_get_opt_doc -- Returns the documentation for the given option nameDescriptionProcedural style: string tidy_get_opt_doc ( tidy object, string optname )Object oriented style: string tidy->getOptDoc ( string optname )tidy_get_opt_doc() returns the documentation for the given option name. Note: You need at least libtidy from 25 April, 2005 for this function be available. Parameters
object A tidy object optnameThe option name Return ValuesReturns a string if the option exists and has documentation available, or FALSE otherwise. Examples
Example 1. Print all options along with their documentation and default value <?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"; } ?> Related Function(s) |