Sophie

Sophie

distrib > Mageia > 4 > i586 > by-pkgid > f800694edefe91adea2624f711a41a2d > files > 5847

php-manual-en-5.5.7-1.mga4.noarch.rpm

<!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>Make regular expression for case insensitive match</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.spliti.html">spliti</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="book.ssdeep.html">ssdeep</a></div>
 <div class="up"><a href="ref.regex.html">POSIX Regex Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.sql-regcase" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">sql_regcase</h1>
  <p class="verinfo">(PHP 4, PHP 5)</p><p class="refpurpose"><span class="refname">sql_regcase</span> &mdash; <span class="dc-title">Make regular expression for case insensitive match</span></p>

 </div>
 
 <div class="refsect1 description" id="refsect1-function.sql-regcase-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>sql_regcase</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$string</code></span>
   )</div>

  <p class="para rdfs-comment">
   Creates a regular expression for a case insensitive match.
  </p>
  <div class="warning"><strong class="warning">Warning</strong><p class="simpara">This function has been
<em class="emphasis">DEPRECATED</em> as of PHP 5.3.0. Relying on this feature is
highly discouraged.</p></div>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.sql-regcase-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    <dt>

     <span class="term"><em><code class="parameter">string</code></em></span>
     <dd>

      <p class="para">
       The input string.
      </p>
     </dd>

    </dt>

   </dl>

  </p>
 </div>


 <div class="refsect1 returnvalues" id="refsect1-function.sql-regcase-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   Returns a valid regular expression which will match
   <em><code class="parameter">string</code></em>, ignoring case. This expression is
   <em><code class="parameter">string</code></em> with each alphabetic character converted to
   a bracket expression; this bracket expression contains that character&#039;s
   uppercase and lowercase form.  Other characters remain unchanged.
  </p>
 </div>


 <div class="refsect1 examples" id="refsect1-function.sql-regcase-examples">
  <h3 class="title">Examples</h3>
  <p class="para">
   <div class="example" id="example-4815">
    <p><strong>Example #1  <span class="function"><strong>sql_regcase()</strong></span> example</strong></p>
    <div class="example-contents">
<div class="phpcode"><code><span style="color: #000000">
<span style="color: #0000BB">&lt;?php<br /></span><span style="color: #007700">echo&nbsp;</span><span style="color: #0000BB">sql_regcase</span><span style="color: #007700">(</span><span style="color: #DD0000">"Foo&nbsp;-&nbsp;bar."</span><span style="color: #007700">);<br /></span><span style="color: #0000BB">?&gt;</span>
</span>
</code></div>
    </div>

    <div class="example-contents"><p>The above example will output:</p></div>
    <div class="example-contents screen">
<div class="cdata"><pre>
[Ff][Oo][Oo] - [Bb][Aa][Rr].
</pre></div>
    </div>
   </div>
  </p>
  <p class="para">
   This can be used to achieve case insensitive pattern matching in
   products which support only case sensitive regular expressions.
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.sql-regcase-notes">
  <h3 class="title">Notes</h3>
  <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para">As of PHP 5.3.0, the
regex extension is deprecated in favor of the
<a href="book.pcre.html" class="link">PCRE extension</a>. Calling this function
will issue an <strong><code>E_DEPRECATED</code></strong> notice. See <a href="reference.pcre.pattern.posix.html" class="link">the list of
differences</a> for help on converting to PCRE.</p></p></blockquote>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.spliti.html">spliti</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="book.ssdeep.html">ssdeep</a></div>
 <div class="up"><a href="ref.regex.html">POSIX Regex Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>