?? function.pspell-suggest.html
字號:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head> <title>Suggest spellings of a word</title> <meta http-equiv="content-type" content="text/html; charset=UTF-8"> </head> <body><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.pspell.html">Pspell Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="book.recode.html">Recode</a></div> <div class="up"><a href="ref.pspell.html">Pspell Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div id="function.pspell-suggest" class="refentry"> <div class="refnamediv"> <h1 class="refname">pspell_suggest</h1> <p class="verinfo">(PHP 4 >= 4.0.2, PHP 5)</p><p class="refpurpose"><span class="refname">pspell_suggest</span> — <span class="dc-title">Suggest spellings of a word</span></p> </div> <div class="refsect1 description"> <h3 class="title">Description</h3> <div class="methodsynopsis dc-description"> <span class="type">array</span> <span class="methodname"><b><b>pspell_suggest</b></b></span> ( <span class="methodparam"><span class="type">int</span> <tt class="parameter">$dictionary_link</tt></span> , <span class="methodparam"><span class="type">string</span> <tt class="parameter">$word</tt></span> )</div> <p class="simpara"> <b>pspell_suggest()</b> returns an array of possible spellings for the given word. </p> </div> <div class="refsect1 parameters"> <h3 class="title">Parameters</h3> <p class="para"> <dl> <dt> <span class="term"><i><tt class="parameter">dictionary_link</tt></i></span> <dd> <p class="para"> </p> </dd> </dt> <dt> <span class="term"><i><tt class="parameter">word</tt></i></span> <dd> <p class="para"> The tested word. </p> </dd> </dt> </dl> </p> </div> <div class="refsect1 returnvalues"> <h3 class="title">Return Values</h3> <p class="para"> Returns an array of possible spellings. </p> </div> <div class="refsect1 examples"> <h3 class="title">Examples</h3> <p class="para"> <div class="example"> <p><b>Example #1 <b>pspell_suggest()</b> example</b></p> <div class="example-contents"><div class="phpcode"><code><span style="color: #000000"><span style="color: #0000BB"><?php<br />$pspell_link </span><span style="color: #007700">= </span><span style="color: #0000BB">pspell_new</span><span style="color: #007700">(</span><span style="color: #DD0000">"en"</span><span style="color: #007700">);<br /><br />if (!</span><span style="color: #0000BB">pspell_check</span><span style="color: #007700">(</span><span style="color: #0000BB">$pspell_link</span><span style="color: #007700">, </span><span style="color: #DD0000">"testt"</span><span style="color: #007700">)) {<br /> </span><span style="color: #0000BB">$suggestions </span><span style="color: #007700">= </span><span style="color: #0000BB">pspell_suggest</span><span style="color: #007700">(</span><span style="color: #0000BB">$pspell_link</span><span style="color: #007700">, </span><span style="color: #DD0000">"testt"</span><span style="color: #007700">);<br /><br /> foreach (</span><span style="color: #0000BB">$suggestions </span><span style="color: #007700">as </span><span style="color: #0000BB">$suggestion</span><span style="color: #007700">) {<br /> echo </span><span style="color: #DD0000">"Possible spelling: $suggestion<br />"</span><span style="color: #007700">;<br /> }<br />}<br /></span><span style="color: #0000BB">?></span></span></code></div> </div> </div> </p> </div></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="ref.pspell.html">Pspell Functions</a></div> <div class="next" style="text-align: right; float: right;"><a href="book.recode.html">Recode</a></div> <div class="up"><a href="ref.pspell.html">Pspell Functions</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div></body></html>
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -