source: www/manuals/PHP_manual/function.strcoll.html@ 1

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

Prvotní import všeho

File size: 3.7 KB
Line 
1<HTML
2><HEAD
3><TITLE
4>strcoll</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="Funkce pro práci s øetìzci"
13HREF="ref.strings.html"><LINK
14REL="PREVIOUS"
15TITLE="strcmp"
16HREF="function.strcmp.html"><LINK
17REL="NEXT"
18TITLE="strcspn"
19HREF="function.strcspn.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.strcmp.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.strcspn.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.strcoll"
75></A
76>strcoll</H1
77><DIV
78CLASS="refnamediv"
79><A
80NAME="AEN83138"
81></A
82><P
83> (PHP 4 &#62;= 4.0.5)</P
84>strcoll&nbsp;--&nbsp;Locale based string comparison</DIV
85><DIV
86CLASS="refsect1"
87><A
88NAME="AEN83141"
89></A
90><H2
91>Description</H2
92>int <B
93CLASS="methodname"
94>strcoll</B
95> ( string str1, string str2)<BR
96></BR
97><P
98>&#13; Returns &#60; 0 if <TT
99CLASS="parameter"
100><I
101>str1</I
102></TT
103> is less than
104 <TT
105CLASS="parameter"
106><I
107>str2</I
108></TT
109>; &#62; 0 if
110 <TT
111CLASS="parameter"
112><I
113>str1</I
114></TT
115> is greater than
116 <TT
117CLASS="parameter"
118><I
119>str2</I
120></TT
121>, and 0 if they are equal.
122 <B
123CLASS="function"
124>strcoll()</B
125> uses the current locale for doing
126 the comparisons. If the current locale is C or POSIX, this
127 function is equivalent to <A
128HREF="function.strcmp.html"
129><B
130CLASS="function"
131>strcmp()</B
132></A
133>.
134 </P
135><P
136>&#13; Note that this comparison is case sensitive, and unlike
137 <A
138HREF="function.strcmp.html"
139><B
140CLASS="function"
141>strcmp()</B
142></A
143> this function is not binary safe.
144 </P
145><DIV
146CLASS="note"
147><BLOCKQUOTE
148CLASS="note"
149><P
150><B
151>Poznámka: </B
152>
153 <B
154CLASS="function"
155>strcoll()</B
156> was added in PHP 4.0.5, but was not enabled
157 for win32 until 4.2.3.
158 </P
159></BLOCKQUOTE
160></DIV
161><P
162>&#13; See also <A
163HREF="function.ereg.html"
164><B
165CLASS="function"
166>ereg()</B
167></A
168>, <A
169HREF="function.strcmp.html"
170><B
171CLASS="function"
172>strcmp()</B
173></A
174>,
175 <A
176HREF="function.strcasecmp.html"
177><B
178CLASS="function"
179>strcasecmp()</B
180></A
181>, <A
182HREF="function.substr.html"
183><B
184CLASS="function"
185>substr()</B
186></A
187>,
188 <A
189HREF="function.stristr.html"
190><B
191CLASS="function"
192>stristr()</B
193></A
194>, <A
195HREF="function.strncasecmp.html"
196><B
197CLASS="function"
198>strncasecmp()</B
199></A
200>,
201 <A
202HREF="function.strncmp.html"
203><B
204CLASS="function"
205>strncmp()</B
206></A
207>, <A
208HREF="function.strstr.html"
209><B
210CLASS="function"
211>strstr()</B
212></A
213>, and
214 <A
215HREF="function.setlocale.html"
216><B
217CLASS="function"
218>setlocale()</B
219></A
220>.
221 </P
222></DIV
223><DIV
224CLASS="NAVFOOTER"
225><HR
226ALIGN="LEFT"
227WIDTH="100%"><TABLE
228SUMMARY="Footer navigation table"
229WIDTH="100%"
230BORDER="0"
231CELLPADDING="0"
232CELLSPACING="0"
233><TR
234><TD
235WIDTH="33%"
236ALIGN="left"
237VALIGN="top"
238><A
239HREF="function.strcmp.html"
240ACCESSKEY="P"
241>Pøedcházející</A
242></TD
243><TD
244WIDTH="34%"
245ALIGN="center"
246VALIGN="top"
247><A
248HREF="index.html"
249ACCESSKEY="H"
250>Domù</A
251></TD
252><TD
253WIDTH="33%"
254ALIGN="right"
255VALIGN="top"
256><A
257HREF="function.strcspn.html"
258ACCESSKEY="N"
259>Dal¹í</A
260></TD
261></TR
262><TR
263><TD
264WIDTH="33%"
265ALIGN="left"
266VALIGN="top"
267>strcmp</TD
268><TD
269WIDTH="34%"
270ALIGN="center"
271VALIGN="top"
272><A
273HREF="ref.strings.html"
274ACCESSKEY="U"
275>Nahoru</A
276></TD
277><TD
278WIDTH="33%"
279ALIGN="right"
280VALIGN="top"
281>strcspn</TD
282></TR
283></TABLE
284></DIV
285></BODY
286></HTML
287>
Note: See TracBrowser for help on using the repository browser.