Sophie

Sophie

distrib > Mandriva > 9.1 > ppc > by-pkgid > a34ed6838d4b29d38abd504392a4a797 > files > 2286

php-manual-es-4.3.0-2mdk.noarch.rpm

<HTML
><HEAD
><TITLE
>preg_replace_callback</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual de PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="Funciones de expresiones regulares compatibles con Perl"
HREF="ref.pcre.html"><LINK
REL="PREVIOUS"
TITLE="preg_quote"
HREF="function.preg-quote.html"><LINK
REL="NEXT"
TITLE="preg_replace"
HREF="function.preg-replace.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-1"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>Manual de PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.preg-quote.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.preg-replace.html"
ACCESSKEY="N"
>Siguiente</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.preg-replace-callback"
></A
>preg_replace_callback</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN67823"
></A
><P
>    (PHP 4 &#62;= 4.0.5)</P
>preg_replace_callback&nbsp;--&nbsp;Perform a regular expression search and replace using a callback</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN67826"
></A
><H2
>Description</H2
>mixed <B
CLASS="methodname"
>preg_replace_callback</B
> ( mixed pattern, callback callback, mixed subject [, int limit])<BR
></BR
><P
>&#13;     The behavior of this function is almost identical to
     <A
HREF="function.preg-replace.html"
><B
CLASS="function"
>preg_replace()</B
></A
>, except for the fact that instead of
     <TT
CLASS="parameter"
><I
>replacement</I
></TT
> parameter, one should specify a
     <TT
CLASS="parameter"
><I
>callback</I
></TT
> that will be called and passed an array of
     matched elements in the subject string. The callback should return the
     replacement string. 
    </P
><P
>&#13;     See also <A
HREF="function.preg-replace.html"
><B
CLASS="function"
>preg_replace()</B
></A
>.
    </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.preg-quote.html"
ACCESSKEY="P"
>Anterior</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Inicio</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.preg-replace.html"
ACCESSKEY="N"
>Siguiente</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>preg_quote</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.pcre.html"
ACCESSKEY="U"
>Subir</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>preg_replace</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>