⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 pcre.constants.html

📁 php的帮助文档,涉及到PHP的案例和基本语法,以及实际应用内容
💻 HTML
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><html> <head>  <title>Predefined Constants</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="pcre.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="pcre.examples.html">Examples</a></div> <div class="up"><a href="book.pcre.html">PCRE</a></div> <div class="home"><a href="index.html">PHP Manual</a></div></div><hr /><div> <h1>Predefined Constants</h1> <p class="simpara">The constants below are defined by this extension, andwill only be available when the extension has eitherbeen compiled into PHP or dynamically loaded at runtime.</p> <table border="5">  <caption><b>PREG constants</b></caption>  <colgroup>   <thead valign="middle">    <tr valign="middle">     <th colspan="1">constant</th>     <th colspan="1">description</th>    </tr>   </thead>   <tbody valign="middle" class="tbody">    <tr valign="middle">     <td colspan="1" rowspan="1" align="left"><b><tt>PREG_PATTERN_ORDER</tt></b></td>     <td colspan="1" rowspan="1" align="left">      Orders results so that $matches[0] is an array of full pattern      matches, $matches[1] is an array of strings matched by the first      parenthesized subpattern, and so on. This flag is only used with      <a href="function.preg-match-all.html" class="function">preg_match_all()</a>.     </td>    </tr>    <tr valign="middle">     <td colspan="1" rowspan="1" align="left"><b><tt>PREG_SET_ORDER</tt></b></td>     <td colspan="1" rowspan="1" align="left">      Orders results so that $matches[0] is an array of first set of      matches, $matches[1] is an array of second set of matches, and so      on. This flag is only used with <a href="function.preg-match-all.html" class="function">preg_match_all()</a>.     </td>    </tr>    <tr valign="middle">     <td colspan="1" rowspan="1" align="left"><b><tt>PREG_OFFSET_CAPTURE</tt></b></td>     <td colspan="1" rowspan="1" align="left">      See the description of      <b><tt>PREG_SPLIT_OFFSET_CAPTURE</tt></b>.  This flag is      available since PHP 4.3.0.     </td>    </tr>    <tr valign="middle">     <td colspan="1" rowspan="1" align="left"><b><tt>PREG_SPLIT_NO_EMPTY</tt></b></td>     <td colspan="1" rowspan="1" align="left">      This flag tells <a href="function.preg-split.html" class="function">preg_split()</a> to return only non-empty      pieces.     </td>    </tr>    <tr valign="middle">     <td colspan="1" rowspan="1" align="left"><b><tt>PREG_SPLIT_DELIM_CAPTURE</tt></b></td>     <td colspan="1" rowspan="1" align="left">      This flag tells <a href="function.preg-split.html" class="function">preg_split()</a> to capture      parenthesized expression in the delimiter pattern as well. This flag      is available since PHP 4.0.5.     </td>    </tr>    <tr valign="middle">     <td colspan="1" rowspan="1" align="left"><b><tt>PREG_SPLIT_OFFSET_CAPTURE</tt></b></td>     <td colspan="1" rowspan="1" align="left">      If this flag is set, for every occurring match the appendant string      offset will also be returned. Note that this changes the return      values in an array where every element is an array consisting of the      matched string at offset 0 and its string offset within subject at      offset 1. This flag is available since PHP 4.3.0      and is only used for <a href="function.preg-split.html" class="function">preg_split()</a>.     </td>    </tr>    <tr valign="middle">     <td colspan="1" rowspan="1" align="left"><b><tt>PREG_NO_ERROR</tt></b></td>     <td colspan="1" rowspan="1" align="left">      Returned by <a href="function.preg-last-error.html" class="function">preg_last_error()</a> if there were no      errors. Available since PHP 5.2.0.     </td>    </tr>    <tr valign="middle">     <td colspan="1" rowspan="1" align="left"><b><tt>PREG_INTERNAL_ERROR</tt></b></td>     <td colspan="1" rowspan="1" align="left">      Returned by <a href="function.preg-last-error.html" class="function">preg_last_error()</a> if there was an      internal PCRE error. Available since PHP 5.2.0.     </td>    </tr>    <tr valign="middle">     <td colspan="1" rowspan="1" align="left"><b><tt>PREG_BACKTRACK_LIMIT_ERROR</tt></b></td>     <td colspan="1" rowspan="1" align="left">      Returned by <a href="function.preg-last-error.html" class="function">preg_last_error()</a> if <a href="pcre.configuration.html#ini.pcre.backtrack-limit" class="link">backtrack limit</a> was exhausted.      Available since PHP 5.2.0.     </td>    </tr>    <tr valign="middle">     <td colspan="1" rowspan="1" align="left"><b><tt>PREG_RECURSION_LIMIT_ERROR</tt></b></td>     <td colspan="1" rowspan="1" align="left">      Returned by <a href="function.preg-last-error.html" class="function">preg_last_error()</a> if <a href="pcre.configuration.html#ini.pcre.recursion-limit" class="link">recursion limit</a> was exhausted.      Available since PHP 5.2.0.     </td>    </tr>    <tr valign="middle">     <td colspan="1" rowspan="1" align="left"><b><tt>PREG_BAD_UTF8_ERROR</tt></b></td>     <td colspan="1" rowspan="1" align="left">      Returned by <a href="function.preg-last-error.html" class="function">preg_last_error()</a> if the last error was      caused by malformed UTF-8 data (only when running a regex in <a href="reference.pcre.pattern.modifiers.html" class="link">UTF-8 mode</a>). Available      since PHP 5.2.0.     </td>    </tr>    <tr valign="middle">     <td colspan="1" rowspan="1" align="left"><b><tt>PREG_BAD_UTF8_OFFSET_ERROR</tt></b></td>     <td colspan="1" rowspan="1" align="left">      Returned by <a href="function.preg-last-error.html" class="function">preg_last_error()</a> if the offset didn&#039;t      correspond to the begin of a valid UTF-8 code point (only when running      a regex in <a href="reference.pcre.pattern.modifiers.html" class="link">UTF-8      mode</a>). Available since PHP 5.3.0.     </td>    </tr>    <tr valign="middle">     <td colspan="1" rowspan="1" align="left"><b><tt>PCRE_VERSION</tt></b></td>     <td colspan="1" rowspan="1" align="left">      PCRE version and release date (e.g. &quot;7.0 18-Dec-2006&quot;). Available since      PHP 5.2.4.     </td>    </tr>   </tbody>  </colgroup> </table></div><hr /><div style="text-align: center;"> <div class="prev" style="text-align: left; float: left;"><a href="pcre.resources.html">Resource Types</a></div> <div class="next" style="text-align: right; float: right;"><a href="pcre.examples.html">Examples</a></div> <div class="up"><a href="book.pcre.html">PCRE</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 + -