source: www/manuals/PHP_manual/function.preg-replace-callback.html@ 1

Last change on this file since 1 was 1, checked in by george, 17 years ago

Prvotní import všeho

File size: 2.9 KB
Line 
1<HTML
2><HEAD
3><TITLE
4>preg_replace_callback</TITLE
5><META
6NAME="GENERATOR"
7CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
8REL="HOME"
9TITLE="Manuál PHP"
10HREF="index.html"><LINK
11REL="UP"
12TITLE="Regular Expression Functions (Perl-Compatible)"
13HREF="ref.pcre.html"><LINK
14REL="PREVIOUS"
15TITLE="preg_quote"
16HREF="function.preg-quote.html"><LINK
17REL="NEXT"
18TITLE="preg_replace"
19HREF="function.preg-replace.html"><META
20HTTP-EQUIV="Content-type"
21CONTENT="text/html; charset=ISO-8859-2"></HEAD
22><BODY
23CLASS="refentry"
24BGCOLOR="#FFFFFF"
25TEXT="#000000"
26LINK="#0000FF"
27VLINK="#840084"
28ALINK="#0000FF"
29><DIV
30CLASS="NAVHEADER"
31><TABLE
32SUMMARY="Header navigation table"
33WIDTH="100%"
34BORDER="0"
35CELLPADDING="0"
36CELLSPACING="0"
37><TR
38><TH
39COLSPAN="3"
40ALIGN="center"
41>Manuál PHP</TH
42></TR
43><TR
44><TD
45WIDTH="10%"
46ALIGN="left"
47VALIGN="bottom"
48><A
49HREF="function.preg-quote.html"
50ACCESSKEY="P"
51>Pøedcházející</A
52></TD
53><TD
54WIDTH="80%"
55ALIGN="center"
56VALIGN="bottom"
57></TD
58><TD
59WIDTH="10%"
60ALIGN="right"
61VALIGN="bottom"
62><A
63HREF="function.preg-replace.html"
64ACCESSKEY="N"
65>Dal¹í</A
66></TD
67></TR
68></TABLE
69><HR
70ALIGN="LEFT"
71WIDTH="100%"></DIV
72><H1
73><A
74NAME="function.preg-replace-callback"
75></A
76>preg_replace_callback</H1
77><DIV
78CLASS="refnamediv"
79><A
80NAME="AEN75111"
81></A
82><P
83> (PHP 4 &#62;= 4.0.5)</P
84>preg_replace_callback&nbsp;--&nbsp;Perform a regular expression search and replace using a callback</DIV
85><DIV
86CLASS="refsect1"
87><A
88NAME="AEN75114"
89></A
90><H2
91>Description</H2
92>mixed <B
93CLASS="methodname"
94>preg_replace_callback</B
95> ( mixed pattern, mixed callback, mixed subject [, int limit])<BR
96></BR
97><P
98>&#13; The behavior of this function is almost identical to
99 <A
100HREF="function.preg-replace.html"
101><B
102CLASS="function"
103>preg_replace()</B
104></A
105>, except for the fact that instead of
106 <TT
107CLASS="parameter"
108><I
109>replacement</I
110></TT
111> parameter, one should specify a
112 <TT
113CLASS="parameter"
114><I
115>callback</I
116></TT
117> that will be called and passed an array of
118 matched elements in the subject string. The callback should return the
119 replacement string. This function was added in PHP 4.0.5.
120 </P
121><P
122>&#13; See also <A
123HREF="function.preg-replace.html"
124><B
125CLASS="function"
126>preg_replace()</B
127></A
128>.
129 </P
130></DIV
131><DIV
132CLASS="NAVFOOTER"
133><HR
134ALIGN="LEFT"
135WIDTH="100%"><TABLE
136SUMMARY="Footer navigation table"
137WIDTH="100%"
138BORDER="0"
139CELLPADDING="0"
140CELLSPACING="0"
141><TR
142><TD
143WIDTH="33%"
144ALIGN="left"
145VALIGN="top"
146><A
147HREF="function.preg-quote.html"
148ACCESSKEY="P"
149>Pøedcházející</A
150></TD
151><TD
152WIDTH="34%"
153ALIGN="center"
154VALIGN="top"
155><A
156HREF="index.html"
157ACCESSKEY="H"
158>Domù</A
159></TD
160><TD
161WIDTH="33%"
162ALIGN="right"
163VALIGN="top"
164><A
165HREF="function.preg-replace.html"
166ACCESSKEY="N"
167>Dal¹í</A
168></TD
169></TR
170><TR
171><TD
172WIDTH="33%"
173ALIGN="left"
174VALIGN="top"
175>preg_quote</TD
176><TD
177WIDTH="34%"
178ALIGN="center"
179VALIGN="top"
180><A
181HREF="ref.pcre.html"
182ACCESSKEY="U"
183>Nahoru</A
184></TD
185><TD
186WIDTH="33%"
187ALIGN="right"
188VALIGN="top"
189>preg_replace</TD
190></TR
191></TABLE
192></DIV
193></BODY
194></HTML
195>
Note: See TracBrowser for help on using the repository browser.