Sophie

Sophie

distrib > Mageia > 7 > armv7hl > by-pkgid > 2b917e0437961edec048f1d15e2d7449 > files > 4656

php-manual-en-7.2.11-1.mga7.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>Replace regular expression with multibyte support ignoring case</title>

 </head>
 <body><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.mb-ereg.html">mb_ereg</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.mb-eregi.html">mb_eregi</a></div>
 <div class="up"><a href="ref.mbstring.html">Multibyte String Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div><hr /><div id="function.mb-eregi-replace" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">mb_eregi_replace</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5, PHP 7)</p><p class="refpurpose"><span class="refname">mb_eregi_replace</span> &mdash; <span class="dc-title">Replace regular expression with multibyte support ignoring case</span></p>
     
 </div>
   
 <div class="refsect1 description" id="refsect1-function.mb-eregi-replace-description">
  <h3 class="title">Description</h3>
  <div class="methodsynopsis dc-description">
   <span class="type">string</span> <span class="methodname"><strong>mb_eregi_replace</strong></span>
    ( <span class="methodparam"><span class="type">string</span> <code class="parameter">$pattern</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$replace</code></span>
   , <span class="methodparam"><span class="type">string</span> <code class="parameter">$string</code></span>
   [, <span class="methodparam"><span class="type">string</span> <code class="parameter">$option</code><span class="initializer"> = &quot;msri&quot;</span></span>
  ] )</div>

  <p class="simpara">
   Scans <code class="parameter">string</code> for matches to
   <code class="parameter">pattern</code>, then replaces the matched text
   with <code class="parameter">replacement</code>. 
  </p>
 </div>


 <div class="refsect1 parameters" id="refsect1-function.mb-eregi-replace-parameters">
  <h3 class="title">Parameters</h3>
  <p class="para">
   <dl>

    
     <dt>
<code class="parameter">pattern</code></dt>

     <dd>

      <p class="para">
       The regular expression pattern.  Multibyte characters may be used. The case will be ignored.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">replace</code></dt>

     <dd>

      <p class="para">
       The replacement text.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">string</code></dt>

     <dd>

      <p class="para">
       The searched <span class="type"><a href="language.types.string.html" class="type string">string</a></span>.
      </p>
     </dd>

    
    
     <dt>
<code class="parameter">option</code></dt>

     <dd>

      <span class="simpara">
       The search option. See <span class="function"><a href="function.mb-regex-set-options.html" class="function">mb_regex_set_options()</a></span> for explanation.
      </span>
     </dd>

    
   </dl>

  </p>
 </div>

 
 <div class="refsect1 returnvalues" id="refsect1-function.mb-eregi-replace-returnvalues">
  <h3 class="title">Return Values</h3>
  <p class="para">
   The resultant <span class="type"><a href="language.types.string.html" class="type string">string</a></span> or <strong><code>FALSE</code></strong> on error. 
  </p>
 </div>


 <div class="refsect1 changelog" id="refsect1-function.mb-eregi-replace-changelog">
  <h3 class="title">Changelog</h3>
  <p class="para">
   <table class="doctable informaltable">
    
     <thead>
      <tr>
       <th>Version</th>
       <th>Description</th>
      </tr>

     </thead>

     <tbody class="tbody">
      <tr>
       <td>7.1.0</td>
       <td>
        The <em>e</em> modifier has been deprecated.
       </td>
      </tr>

     </tbody>
    
   </table>

  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.mb-eregi-replace-notes">
  <h3 class="title">Notes</h3>
  
  <blockquote class="note"><p><strong class="note">Note</strong>: <p class="para">The internal encoding or the
character encoding specified by <span class="function"><a href="function.mb-regex-encoding.html" class="function">mb_regex_encoding()</a></span>
will be used as the character encoding for this function.</p></p></blockquote>
  <div class="warning"><strong class="warning">Warning</strong><p class="para">Never use the <em>e</em> modifier when working on untrusted input. No automatic escaping will happen (as known from <span class="function"><a href="function.preg-replace.html" class="function">preg_replace()</a></span>). Not taking care of this will most likely create remote code execution vulnerabilities in your application.</p></div>
 </div>


 <div class="refsect1 seealso" id="refsect1-function.mb-eregi-replace-seealso">
  <h3 class="title">See Also</h3>
  <p class="para">
   <ul class="simplelist">
    <li class="member"><span class="function"><a href="function.mb-regex-encoding.html" class="function" rel="rdfs-seeAlso">mb_regex_encoding()</a> - Set/Get character encoding for multibyte regex</span></li>
    <li class="member"><span class="function"><a href="function.mb-ereg-replace.html" class="function" rel="rdfs-seeAlso">mb_ereg_replace()</a> - Replace regular expression with multibyte support</span></li>
   </ul>
  </p>
 </div>


</div><hr /><div class="manualnavbar" style="text-align: center;">
 <div class="prev" style="text-align: left; float: left;"><a href="function.mb-ereg.html">mb_ereg</a></div>
 <div class="next" style="text-align: right; float: right;"><a href="function.mb-eregi.html">mb_eregi</a></div>
 <div class="up"><a href="ref.mbstring.html">Multibyte String Functions</a></div>
 <div class="home"><a href="index.html">PHP Manual</a></div>
</div></body></html>