mirror of
https://github.com/fofolee/uTools-Manuals.git
synced 2025-06-18 13:57:03 +08:00
72 lines
2.3 KiB
HTML
72 lines
2.3 KiB
HTML
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
|
|
<html>
|
|
<head>
|
|
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
|
|
<title>Parse a string following a given rule set</title>
|
|
</head>
|
|
<body class="docs"><div id="layout">
|
|
<div id="layout-content"><div id="function.bbcode-parse" class="refentry">
|
|
<div class="refnamediv">
|
|
<h1 class="refname">bbcode_parse</h1>
|
|
<p class="verinfo">(PECL bbcode >= 0.9.0)</p><p class="refpurpose"><span class="refname">bbcode_parse</span> — <span class="dc-title">Parse a string following a given rule set</span></p>
|
|
|
|
</div>
|
|
<div class="refsect1 description" id="refsect1-function.bbcode-parse-description">
|
|
<h3 class="title">说明</h3>
|
|
<div class="methodsynopsis dc-description">
|
|
<span class="methodname"><strong>bbcode_parse</strong></span>
|
|
( <span class="methodparam"><span class="type">resource</span> <code class="parameter">$bbcode_container</code></span>
|
|
, <span class="methodparam"><span class="type">string</span> <code class="parameter">$to_parse</code></span>
|
|
) : <span class="type">string</span></div>
|
|
|
|
|
|
<p class="para rdfs-comment">
|
|
This function parse the string to_parse following the rules in the
|
|
bbcode_container created by <span class="function"><a href="bbcode_create.html" class="function">bbcode_create()</a></span>
|
|
</p>
|
|
|
|
</div>
|
|
|
|
<div class="refsect1 parameters" id="refsect1-function.bbcode-parse-parameters">
|
|
<h3 class="title">参数</h3>
|
|
<p class="para">
|
|
<dl>
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">bbcode_container</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
BBCode_Container resource returned by <span class="function"><a href="bbcode_create.html" class="function">bbcode_create()</a></span>.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
|
|
<dt>
|
|
<code class="parameter">to_parse</code></dt>
|
|
|
|
<dd>
|
|
|
|
<p class="para">
|
|
The string we need to parse.
|
|
</p>
|
|
</dd>
|
|
|
|
|
|
</dl>
|
|
|
|
</p>
|
|
</div>
|
|
|
|
<div class="refsect1 returnvalues" id="refsect1-function.bbcode-parse-returnvalues">
|
|
<h3 class="title">返回值</h3>
|
|
<p class="para">
|
|
Returns the parsed string, 或者在失败时返回 <strong><code>FALSE</code></strong>.
|
|
</p>
|
|
</div>
|
|
|
|
|
|
</div></div></div></body></html> |