1 | <HTML
|
---|
2 | ><HEAD
|
---|
3 | ><TITLE
|
---|
4 | >Multi-Byte String Functions</TITLE
|
---|
5 | ><META
|
---|
6 | NAME="GENERATOR"
|
---|
7 | CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
|
---|
8 | REL="HOME"
|
---|
9 | TITLE="Manuál PHP"
|
---|
10 | HREF="index.html"><LINK
|
---|
11 | REL="UP"
|
---|
12 | TITLE="Reference funkcí"
|
---|
13 | HREF="funcref.html"><LINK
|
---|
14 | REL="PREVIOUS"
|
---|
15 | TITLE="tanh"
|
---|
16 | HREF="function.tanh.html"><LINK
|
---|
17 | REL="NEXT"
|
---|
18 | TITLE="mb_convert_case"
|
---|
19 | HREF="function.mb-convert-case.html"><META
|
---|
20 | HTTP-EQUIV="Content-type"
|
---|
21 | CONTENT="text/html; charset=ISO-8859-2"></HEAD
|
---|
22 | ><BODY
|
---|
23 | CLASS="reference"
|
---|
24 | BGCOLOR="#FFFFFF"
|
---|
25 | TEXT="#000000"
|
---|
26 | LINK="#0000FF"
|
---|
27 | VLINK="#840084"
|
---|
28 | ALINK="#0000FF"
|
---|
29 | ><DIV
|
---|
30 | CLASS="NAVHEADER"
|
---|
31 | ><TABLE
|
---|
32 | SUMMARY="Header navigation table"
|
---|
33 | WIDTH="100%"
|
---|
34 | BORDER="0"
|
---|
35 | CELLPADDING="0"
|
---|
36 | CELLSPACING="0"
|
---|
37 | ><TR
|
---|
38 | ><TH
|
---|
39 | COLSPAN="3"
|
---|
40 | ALIGN="center"
|
---|
41 | >Manuál PHP</TH
|
---|
42 | ></TR
|
---|
43 | ><TR
|
---|
44 | ><TD
|
---|
45 | WIDTH="10%"
|
---|
46 | ALIGN="left"
|
---|
47 | VALIGN="bottom"
|
---|
48 | ><A
|
---|
49 | HREF="function.tanh.html"
|
---|
50 | ACCESSKEY="P"
|
---|
51 | >Pøedcházející</A
|
---|
52 | ></TD
|
---|
53 | ><TD
|
---|
54 | WIDTH="80%"
|
---|
55 | ALIGN="center"
|
---|
56 | VALIGN="bottom"
|
---|
57 | ></TD
|
---|
58 | ><TD
|
---|
59 | WIDTH="10%"
|
---|
60 | ALIGN="right"
|
---|
61 | VALIGN="bottom"
|
---|
62 | ><A
|
---|
63 | HREF="function.mb-convert-case.html"
|
---|
64 | ACCESSKEY="N"
|
---|
65 | >Dal¹í</A
|
---|
66 | ></TD
|
---|
67 | ></TR
|
---|
68 | ></TABLE
|
---|
69 | ><HR
|
---|
70 | ALIGN="LEFT"
|
---|
71 | WIDTH="100%"></DIV
|
---|
72 | ><DIV
|
---|
73 | CLASS="reference"
|
---|
74 | ><A
|
---|
75 | NAME="ref.mbstring"
|
---|
76 | ></A
|
---|
77 | ><DIV
|
---|
78 | CLASS="TITLEPAGE"
|
---|
79 | ><H1
|
---|
80 | CLASS="title"
|
---|
81 | >LII. Multi-Byte String Functions</H1
|
---|
82 | ><DIV
|
---|
83 | CLASS="PARTINTRO"
|
---|
84 | ><A
|
---|
85 | NAME="AEN41368"
|
---|
86 | ></A
|
---|
87 | ><DIV
|
---|
88 | CLASS="section"
|
---|
89 | ><H1
|
---|
90 | CLASS="section"
|
---|
91 | ><A
|
---|
92 | NAME="mbstring.intro"
|
---|
93 | ></A
|
---|
94 | >Úvod</H1
|
---|
95 | ><P
|
---|
96 | > There are many languages in which all characters can be expressed
|
---|
97 | by single byte. Multi-byte character codes are used to express
|
---|
98 | many characters for many languages. <TT
|
---|
99 | CLASS="literal"
|
---|
100 | >mbstring</TT
|
---|
101 | >
|
---|
102 | is developed to handle Japanese characters. However, many
|
---|
103 | <TT
|
---|
104 | CLASS="literal"
|
---|
105 | >mbstring</TT
|
---|
106 | > functions are able to handle
|
---|
107 | character encoding other than Japanese.
|
---|
108 | </P
|
---|
109 | ><P
|
---|
110 | > A multi-byte character encoding represents single character with
|
---|
111 | consecutive bytes. Some character encoding has shift(escape)
|
---|
112 | sequences to start/end multi-byte character strings. Therefore, a
|
---|
113 | multi-byte character string may be destroyed when it is divided
|
---|
114 | and/or counted unless multi-byte character encoding safe method
|
---|
115 | is used. This module provides multi-byte character safe string
|
---|
116 | functions and other utility functions such as conversion
|
---|
117 | functions.
|
---|
118 | </P
|
---|
119 | ><P
|
---|
120 | > Since PHP is basically designed for ISO-8859-1, some multi-byte
|
---|
121 | character encoding does not work well with PHP. Therefore, it is
|
---|
122 | important to set <TT
|
---|
123 | CLASS="literal"
|
---|
124 | >mbstring.internal_encoding</TT
|
---|
125 | > to
|
---|
126 | a character encoding that works with PHP.
|
---|
127 | </P
|
---|
128 | ><P
|
---|
129 | > PHP4 Character Encoding Requirements
|
---|
130 | </P
|
---|
131 | ><P
|
---|
132 | > <P
|
---|
133 | ></P
|
---|
134 | ><UL
|
---|
135 | ><LI
|
---|
136 | ><P
|
---|
137 | > Per byte encoding
|
---|
138 | </P
|
---|
139 | ></LI
|
---|
140 | ><LI
|
---|
141 | ><P
|
---|
142 | > Single byte characters in range of <TT
|
---|
143 | CLASS="literal"
|
---|
144 | >00h-7fh</TT
|
---|
145 | >
|
---|
146 | which is compatible with <TT
|
---|
147 | CLASS="literal"
|
---|
148 | >ASCII</TT
|
---|
149 | >
|
---|
150 | </P
|
---|
151 | ></LI
|
---|
152 | ><LI
|
---|
153 | ><P
|
---|
154 | > Multi-byte characters without <TT
|
---|
155 | CLASS="literal"
|
---|
156 | >00h-7fh</TT
|
---|
157 | >
|
---|
158 | </P
|
---|
159 | ></LI
|
---|
160 | ></UL
|
---|
161 | >
|
---|
162 | </P
|
---|
163 | ><P
|
---|
164 | > These are examples of internal character encoding that works with
|
---|
165 | PHP and does NOT work with PHP.
|
---|
166 | <DIV
|
---|
167 | CLASS="informalexample"
|
---|
168 | ><A
|
---|
169 | NAME="AEN41390"
|
---|
170 | ></A
|
---|
171 | ><P
|
---|
172 | ></P
|
---|
173 | ><TABLE
|
---|
174 | BORDER="0"
|
---|
175 | BGCOLOR="#E0E0E0"
|
---|
176 | CELLPADDING="5"
|
---|
177 | ><TR
|
---|
178 | ><TD
|
---|
179 | ><PRE
|
---|
180 | CLASS="programlisting"
|
---|
181 | >Character encodings work with PHP:
|
---|
182 | ISO-8859-*, EUC-JP, UTF-8
|
---|
183 |
|
---|
184 | Character encodings do NOT work with PHP:
|
---|
185 | JIS, SJIS</PRE
|
---|
186 | ></TD
|
---|
187 | ></TR
|
---|
188 | ></TABLE
|
---|
189 | ><P
|
---|
190 | ></P
|
---|
191 | ></DIV
|
---|
192 | >
|
---|
193 | </P
|
---|
194 | ><P
|
---|
195 | > Character encoding, that does not work with PHP, may be converted
|
---|
196 | with <TT
|
---|
197 | CLASS="literal"
|
---|
198 | >mbstring</TT
|
---|
199 | >'s HTTP input/output conversion
|
---|
200 | feature/function.
|
---|
201 | </P
|
---|
202 | ><DIV
|
---|
203 | CLASS="note"
|
---|
204 | ><BLOCKQUOTE
|
---|
205 | CLASS="note"
|
---|
206 | ><P
|
---|
207 | ><B
|
---|
208 | >Poznámka: </B
|
---|
209 | >
|
---|
210 | SJIS should not be used for internal encoding unless the reader
|
---|
211 | is familiar with parser/compiler, character encoding and
|
---|
212 | character encoding issues.
|
---|
213 | </P
|
---|
214 | ></BLOCKQUOTE
|
---|
215 | ></DIV
|
---|
216 | ><DIV
|
---|
217 | CLASS="note"
|
---|
218 | ><BLOCKQUOTE
|
---|
219 | CLASS="note"
|
---|
220 | ><P
|
---|
221 | ><B
|
---|
222 | >Poznámka: </B
|
---|
223 | >
|
---|
224 | If you use databases with PHP, it is recommended that you use the
|
---|
225 | same character encoding for both database and <TT
|
---|
226 | CLASS="literal"
|
---|
227 | >internal
|
---|
228 | encoding</TT
|
---|
229 | > for ease of use and better performance.
|
---|
230 | </P
|
---|
231 | ><P
|
---|
232 | > If you are using PostgreSQL, it supports character
|
---|
233 | encoding that is different from backend character encoding. See
|
---|
234 | the PostgreSQL manual for details.
|
---|
235 | </P
|
---|
236 | ></BLOCKQUOTE
|
---|
237 | ></DIV
|
---|
238 | ></DIV
|
---|
239 | ><DIV
|
---|
240 | CLASS="section"
|
---|
241 | ><H1
|
---|
242 | CLASS="section"
|
---|
243 | ><A
|
---|
244 | NAME="mbstring.installation"
|
---|
245 | ></A
|
---|
246 | >Instalace</H1
|
---|
247 | ><P
|
---|
248 | > <TT
|
---|
249 | CLASS="literal"
|
---|
250 | >mbstring</TT
|
---|
251 | > is an extended module. You must
|
---|
252 | enable the module with the <TT
|
---|
253 | CLASS="literal"
|
---|
254 | >configure</TT
|
---|
255 | > script.
|
---|
256 | Refer to the <A
|
---|
257 | HREF="installation.html"
|
---|
258 | >Install</A
|
---|
259 | > section for
|
---|
260 | details.
|
---|
261 | </P
|
---|
262 | ><P
|
---|
263 | > The following configure options are related to the
|
---|
264 | <TT
|
---|
265 | CLASS="literal"
|
---|
266 | >mbstring</TT
|
---|
267 | > module.
|
---|
268 | </P
|
---|
269 | ><P
|
---|
270 | > <P
|
---|
271 | ></P
|
---|
272 | ><UL
|
---|
273 | ><LI
|
---|
274 | ><P
|
---|
275 | > <TT
|
---|
276 | CLASS="option"
|
---|
277 | >--enable-mbstring</TT
|
---|
278 | > : Enable
|
---|
279 | <TT
|
---|
280 | CLASS="literal"
|
---|
281 | >mbstring</TT
|
---|
282 | > functions. This option is
|
---|
283 | required to use <TT
|
---|
284 | CLASS="literal"
|
---|
285 | >mbstring</TT
|
---|
286 | > functions.
|
---|
287 | </P
|
---|
288 | ><DIV
|
---|
289 | CLASS="note"
|
---|
290 | ><BLOCKQUOTE
|
---|
291 | CLASS="note"
|
---|
292 | ><P
|
---|
293 | ><B
|
---|
294 | >Poznámka: </B
|
---|
295 | >
|
---|
296 | As of PHP 4.3.0, the option
|
---|
297 | <TT
|
---|
298 | CLASS="option"
|
---|
299 | >--enable-mbstring</TT
|
---|
300 | >
|
---|
301 | will be enabled by default and replaced with
|
---|
302 | <TT
|
---|
303 | CLASS="option"
|
---|
304 | >--with-mbstring[=LANG]</TT
|
---|
305 | >
|
---|
306 | to support Chinese, Korean and Russian language support.
|
---|
307 | Japanese character encoding is supported by default.
|
---|
308 | If <TT
|
---|
309 | CLASS="option"
|
---|
310 | >--with-mbstring=cn</TT
|
---|
311 | >
|
---|
312 | is used, simplified chinese encoding will be supported.
|
---|
313 | If <TT
|
---|
314 | CLASS="option"
|
---|
315 | >--with-mbstring=tw</TT
|
---|
316 | >
|
---|
317 | is used, traditional chinese encoding will be supported.
|
---|
318 | If <TT
|
---|
319 | CLASS="option"
|
---|
320 | >--with-mbstring=kr</TT
|
---|
321 | >
|
---|
322 | is used, korean encoding will be supported.
|
---|
323 | If <TT
|
---|
324 | CLASS="option"
|
---|
325 | >--with-mbstring=ru</TT
|
---|
326 | >
|
---|
327 | is used, russian encoding will be supported.
|
---|
328 | If <TT
|
---|
329 | CLASS="option"
|
---|
330 | >--with-mbstring=all</TT
|
---|
331 | >
|
---|
332 | is added, all supported character encoding in mbstring
|
---|
333 | will be enabled, but the binary size of PHP will be
|
---|
334 | maximized because of huge Unicode character maps.
|
---|
335 | Note that Chinese, Korean and Russian encoding is
|
---|
336 | experimentally supported in PHP 4.3.0.
|
---|
337 | </P
|
---|
338 | ></BLOCKQUOTE
|
---|
339 | ></DIV
|
---|
340 | ></LI
|
---|
341 | ><LI
|
---|
342 | ><P
|
---|
343 | > <TT
|
---|
344 | CLASS="option"
|
---|
345 | >--enable-mbstr-enc-trans</TT
|
---|
346 | > :
|
---|
347 | Enable HTTP input character encoding conversion using
|
---|
348 | <TT
|
---|
349 | CLASS="literal"
|
---|
350 | >mbstring</TT
|
---|
351 | > conversion engine. If this
|
---|
352 | feature is enabled, HTTP input character encoding may be
|
---|
353 | converted to <TT
|
---|
354 | CLASS="literal"
|
---|
355 | >mbstring.internal_encoding</TT
|
---|
356 | >
|
---|
357 | automatically.
|
---|
358 | </P
|
---|
359 | ><DIV
|
---|
360 | CLASS="note"
|
---|
361 | ><BLOCKQUOTE
|
---|
362 | CLASS="note"
|
---|
363 | ><P
|
---|
364 | ><B
|
---|
365 | >Poznámka: </B
|
---|
366 | >
|
---|
367 | As of PHP 4.3.0, the option
|
---|
368 | <TT
|
---|
369 | CLASS="option"
|
---|
370 | >--enable-mbstr-enc-trans</TT
|
---|
371 | >
|
---|
372 | will be eliminated and replaced with
|
---|
373 | <TT
|
---|
374 | CLASS="literal"
|
---|
375 | >mbstring.encoding_translation</TT
|
---|
376 | >.
|
---|
377 | HTTP input character encoding conversion is enabled
|
---|
378 | when this is set to <TT
|
---|
379 | CLASS="literal"
|
---|
380 | >On</TT
|
---|
381 | >
|
---|
382 | (the default is <TT
|
---|
383 | CLASS="literal"
|
---|
384 | >Off</TT
|
---|
385 | >).
|
---|
386 | </P
|
---|
387 | ></BLOCKQUOTE
|
---|
388 | ></DIV
|
---|
389 | ></LI
|
---|
390 | ><LI
|
---|
391 | ><P
|
---|
392 | > <TT
|
---|
393 | CLASS="option"
|
---|
394 | >--enable-mbregex</TT
|
---|
395 | > : Enable
|
---|
396 | regular expression functions with multibyte character support.
|
---|
397 | </P
|
---|
398 | ></LI
|
---|
399 | ></UL
|
---|
400 | >
|
---|
401 | </P
|
---|
402 | ></DIV
|
---|
403 | ><DIV
|
---|
404 | CLASS="section"
|
---|
405 | ><H1
|
---|
406 | CLASS="section"
|
---|
407 | ><A
|
---|
408 | NAME="mbstring.configuration"
|
---|
409 | ></A
|
---|
410 | >Konfigurace bìhu</H1
|
---|
411 | ><P
|
---|
412 | > Chování tìchto funkcí je ovlivnìno nastavením parametrù v <TT
|
---|
413 | CLASS="filename"
|
---|
414 | >php.ini</TT
|
---|
415 | >.
|
---|
416 | </P
|
---|
417 | ><P
|
---|
418 | > <DIV
|
---|
419 | CLASS="table"
|
---|
420 | ><A
|
---|
421 | NAME="AEN41443"
|
---|
422 | ></A
|
---|
423 | ><P
|
---|
424 | ><B
|
---|
425 | >Tabulka 1. Multi-Byte String configuration options</B
|
---|
426 | ></P
|
---|
427 | ><TABLE
|
---|
428 | BORDER="1"
|
---|
429 | CLASS="CALSTABLE"
|
---|
430 | ><THEAD
|
---|
431 | ><TR
|
---|
432 | ><TH
|
---|
433 | ALIGN="LEFT"
|
---|
434 | VALIGN="MIDDLE"
|
---|
435 | >Name</TH
|
---|
436 | ><TH
|
---|
437 | ALIGN="LEFT"
|
---|
438 | VALIGN="MIDDLE"
|
---|
439 | >Default</TH
|
---|
440 | ><TH
|
---|
441 | ALIGN="LEFT"
|
---|
442 | VALIGN="MIDDLE"
|
---|
443 | >Changeable</TH
|
---|
444 | ></TR
|
---|
445 | ></THEAD
|
---|
446 | ><TBODY
|
---|
447 | ><TR
|
---|
448 | ><TD
|
---|
449 | ALIGN="LEFT"
|
---|
450 | VALIGN="MIDDLE"
|
---|
451 | >mbstring.language</TD
|
---|
452 | ><TD
|
---|
453 | ALIGN="LEFT"
|
---|
454 | VALIGN="MIDDLE"
|
---|
455 | >NULL</TD
|
---|
456 | ><TD
|
---|
457 | ALIGN="LEFT"
|
---|
458 | VALIGN="MIDDLE"
|
---|
459 | >PHP_INI_ALL</TD
|
---|
460 | ></TR
|
---|
461 | ><TR
|
---|
462 | ><TD
|
---|
463 | ALIGN="LEFT"
|
---|
464 | VALIGN="MIDDLE"
|
---|
465 | >mbstring.detect_order</TD
|
---|
466 | ><TD
|
---|
467 | ALIGN="LEFT"
|
---|
468 | VALIGN="MIDDLE"
|
---|
469 | >NULL</TD
|
---|
470 | ><TD
|
---|
471 | ALIGN="LEFT"
|
---|
472 | VALIGN="MIDDLE"
|
---|
473 | >PHP_INI_ALL</TD
|
---|
474 | ></TR
|
---|
475 | ><TR
|
---|
476 | ><TD
|
---|
477 | ALIGN="LEFT"
|
---|
478 | VALIGN="MIDDLE"
|
---|
479 | >mbstring.http_input</TD
|
---|
480 | ><TD
|
---|
481 | ALIGN="LEFT"
|
---|
482 | VALIGN="MIDDLE"
|
---|
483 | >NULL</TD
|
---|
484 | ><TD
|
---|
485 | ALIGN="LEFT"
|
---|
486 | VALIGN="MIDDLE"
|
---|
487 | >PHP_INI_ALL</TD
|
---|
488 | ></TR
|
---|
489 | ><TR
|
---|
490 | ><TD
|
---|
491 | ALIGN="LEFT"
|
---|
492 | VALIGN="MIDDLE"
|
---|
493 | >mbstring.http_output</TD
|
---|
494 | ><TD
|
---|
495 | ALIGN="LEFT"
|
---|
496 | VALIGN="MIDDLE"
|
---|
497 | >NULL</TD
|
---|
498 | ><TD
|
---|
499 | ALIGN="LEFT"
|
---|
500 | VALIGN="MIDDLE"
|
---|
501 | >PHP_INI_ALL</TD
|
---|
502 | ></TR
|
---|
503 | ><TR
|
---|
504 | ><TD
|
---|
505 | ALIGN="LEFT"
|
---|
506 | VALIGN="MIDDLE"
|
---|
507 | >mbstring.internal_encoding</TD
|
---|
508 | ><TD
|
---|
509 | ALIGN="LEFT"
|
---|
510 | VALIGN="MIDDLE"
|
---|
511 | >NULL</TD
|
---|
512 | ><TD
|
---|
513 | ALIGN="LEFT"
|
---|
514 | VALIGN="MIDDLE"
|
---|
515 | >PHP_INI_ALL</TD
|
---|
516 | ></TR
|
---|
517 | ><TR
|
---|
518 | ><TD
|
---|
519 | ALIGN="LEFT"
|
---|
520 | VALIGN="MIDDLE"
|
---|
521 | >mbstring.script_encoding</TD
|
---|
522 | ><TD
|
---|
523 | ALIGN="LEFT"
|
---|
524 | VALIGN="MIDDLE"
|
---|
525 | >NULL</TD
|
---|
526 | ><TD
|
---|
527 | ALIGN="LEFT"
|
---|
528 | VALIGN="MIDDLE"
|
---|
529 | >PHP_INI_ALL</TD
|
---|
530 | ></TR
|
---|
531 | ><TR
|
---|
532 | ><TD
|
---|
533 | ALIGN="LEFT"
|
---|
534 | VALIGN="MIDDLE"
|
---|
535 | >mbstring.substitute_character</TD
|
---|
536 | ><TD
|
---|
537 | ALIGN="LEFT"
|
---|
538 | VALIGN="MIDDLE"
|
---|
539 | >NULL</TD
|
---|
540 | ><TD
|
---|
541 | ALIGN="LEFT"
|
---|
542 | VALIGN="MIDDLE"
|
---|
543 | >PHP_INI_ALL</TD
|
---|
544 | ></TR
|
---|
545 | ><TR
|
---|
546 | ><TD
|
---|
547 | ALIGN="LEFT"
|
---|
548 | VALIGN="MIDDLE"
|
---|
549 | >mbstring.func_overload</TD
|
---|
550 | ><TD
|
---|
551 | ALIGN="LEFT"
|
---|
552 | VALIGN="MIDDLE"
|
---|
553 | >"0"</TD
|
---|
554 | ><TD
|
---|
555 | ALIGN="LEFT"
|
---|
556 | VALIGN="MIDDLE"
|
---|
557 | >PHP_INI_SYSTEM</TD
|
---|
558 | ></TR
|
---|
559 | ><TR
|
---|
560 | ><TD
|
---|
561 | ALIGN="LEFT"
|
---|
562 | VALIGN="MIDDLE"
|
---|
563 | >mbstring.encoding_translation</TD
|
---|
564 | ><TD
|
---|
565 | ALIGN="LEFT"
|
---|
566 | VALIGN="MIDDLE"
|
---|
567 | >"0"</TD
|
---|
568 | ><TD
|
---|
569 | ALIGN="LEFT"
|
---|
570 | VALIGN="MIDDLE"
|
---|
571 | >PHP_INI_ALL</TD
|
---|
572 | ></TR
|
---|
573 | ></TBODY
|
---|
574 | ></TABLE
|
---|
575 | ></DIV
|
---|
576 | >
|
---|
577 | For further details and definition of the PHP_INI_* constants see
|
---|
578 | <A
|
---|
579 | HREF="function.ini-set.html"
|
---|
580 | ><B
|
---|
581 | CLASS="function"
|
---|
582 | >ini_set()</B
|
---|
583 | ></A
|
---|
584 | >.
|
---|
585 | </P
|
---|
586 | ><P
|
---|
587 | > Here is a short explanation of the configuration directives.
|
---|
588 | <P
|
---|
589 | ></P
|
---|
590 | ><UL
|
---|
591 | ><LI
|
---|
592 | ><A
|
---|
593 | NAME="ini.mbstring.language"
|
---|
594 | ></A
|
---|
595 | ><P
|
---|
596 | > <TT
|
---|
597 | CLASS="literal"
|
---|
598 | >mbstring.language</TT
|
---|
599 | > defines
|
---|
600 | default language used in mbstring.
|
---|
601 | Note that this option defines
|
---|
602 | <TT
|
---|
603 | CLASS="literal"
|
---|
604 | >mbstring.interanl_encoding</TT
|
---|
605 | >
|
---|
606 | and <TT
|
---|
607 | CLASS="literal"
|
---|
608 | >mbstring.interanl_encoding</TT
|
---|
609 | >
|
---|
610 | should be placed after <TT
|
---|
611 | CLASS="literal"
|
---|
612 | >mbstring.language</TT
|
---|
613 | >
|
---|
614 | in <TT
|
---|
615 | CLASS="filename"
|
---|
616 | >php.ini</TT
|
---|
617 | >
|
---|
618 | </P
|
---|
619 | ></LI
|
---|
620 | ><LI
|
---|
621 | ><A
|
---|
622 | NAME="ini.mbstring.encoding-translation"
|
---|
623 | ></A
|
---|
624 | ><P
|
---|
625 | > <TT
|
---|
626 | CLASS="literal"
|
---|
627 | >mbstring.encoding_translation</TT
|
---|
628 | > enables
|
---|
629 | HTTP input character encoding detection and translation into
|
---|
630 | internal chatacter encoding.
|
---|
631 | </P
|
---|
632 | ></LI
|
---|
633 | ><LI
|
---|
634 | ><A
|
---|
635 | NAME="ini.mbstring.internal-encoding"
|
---|
636 | ></A
|
---|
637 | ><P
|
---|
638 | > <TT
|
---|
639 | CLASS="literal"
|
---|
640 | >mbstring.internal_encoding</TT
|
---|
641 | > defines default
|
---|
642 | internal character encoding.
|
---|
643 | </P
|
---|
644 | ></LI
|
---|
645 | ><LI
|
---|
646 | ><A
|
---|
647 | NAME="ini.mbstring.http-input"
|
---|
648 | ></A
|
---|
649 | ><P
|
---|
650 | > <TT
|
---|
651 | CLASS="literal"
|
---|
652 | >mbstring.http_input</TT
|
---|
653 | > defines default HTTP
|
---|
654 | input character encoding.
|
---|
655 | </P
|
---|
656 | ></LI
|
---|
657 | ><LI
|
---|
658 | ><A
|
---|
659 | NAME="ini.mbstring.http-output"
|
---|
660 | ></A
|
---|
661 | ><P
|
---|
662 | > <TT
|
---|
663 | CLASS="literal"
|
---|
664 | >mbstring.http_output</TT
|
---|
665 | > defines default HTTP
|
---|
666 | output character encoding.
|
---|
667 | </P
|
---|
668 | ></LI
|
---|
669 | ><LI
|
---|
670 | ><A
|
---|
671 | NAME="ini.mbstring.detect-order"
|
---|
672 | ></A
|
---|
673 | ><P
|
---|
674 | > <TT
|
---|
675 | CLASS="literal"
|
---|
676 | >mbstring.detect_order</TT
|
---|
677 | > defines default
|
---|
678 | character code detection order. See also
|
---|
679 | <A
|
---|
680 | HREF="function.mb-detect-order.html"
|
---|
681 | ><B
|
---|
682 | CLASS="function"
|
---|
683 | >mb_detect_order()</B
|
---|
684 | ></A
|
---|
685 | >.
|
---|
686 | </P
|
---|
687 | ></LI
|
---|
688 | ><LI
|
---|
689 | ><A
|
---|
690 | NAME="ini.mbstring.substitute-character"
|
---|
691 | ></A
|
---|
692 | ><P
|
---|
693 | > <TT
|
---|
694 | CLASS="literal"
|
---|
695 | >mbstring.substitute_character</TT
|
---|
696 | > defines
|
---|
697 | character to substitute for invalid character encoding.
|
---|
698 | </P
|
---|
699 | ></LI
|
---|
700 | ><LI
|
---|
701 | ><A
|
---|
702 | NAME="ini.mbstring.func-overload"
|
---|
703 | ></A
|
---|
704 | ><P
|
---|
705 | > <TT
|
---|
706 | CLASS="literal"
|
---|
707 | >mbstring.func_overload</TT
|
---|
708 | >overload(replace) single byte
|
---|
709 | functions by mbstring functions. <A
|
---|
710 | HREF="function.mail.html"
|
---|
711 | ><B
|
---|
712 | CLASS="function"
|
---|
713 | >mail()</B
|
---|
714 | ></A
|
---|
715 | >,
|
---|
716 | <A
|
---|
717 | HREF="function.ereg.html"
|
---|
718 | ><B
|
---|
719 | CLASS="function"
|
---|
720 | >ereg()</B
|
---|
721 | ></A
|
---|
722 | >, etc. are overloaded by
|
---|
723 | <A
|
---|
724 | HREF="function.mb-send-mail.html"
|
---|
725 | ><B
|
---|
726 | CLASS="function"
|
---|
727 | >mb_send_mail()</B
|
---|
728 | ></A
|
---|
729 | >, <A
|
---|
730 | HREF="function.mb-ereg.html"
|
---|
731 | ><B
|
---|
732 | CLASS="function"
|
---|
733 | >mb_ereg()</B
|
---|
734 | ></A
|
---|
735 | >, etc.
|
---|
736 | Possible values are 0, 1, 2, 4 or a combination of them.
|
---|
737 | For example, 7 for overload everything.
|
---|
738 | 0: No overload, 1: Overload <A
|
---|
739 | HREF="function.mail.html"
|
---|
740 | ><B
|
---|
741 | CLASS="function"
|
---|
742 | >mail()</B
|
---|
743 | ></A
|
---|
744 | > function,
|
---|
745 | 2: Overload str*() functions, 4: Overload ereg*() functions.
|
---|
746 | </P
|
---|
747 | ></LI
|
---|
748 | ></UL
|
---|
749 | >
|
---|
750 | </P
|
---|
751 | ><P
|
---|
752 | > Web Browsers are supposed to use the same character encoding
|
---|
753 | when submitting form. However, browsers may not use the same
|
---|
754 | character encoding. See <A
|
---|
755 | HREF="function.mb-http-input.html"
|
---|
756 | ><B
|
---|
757 | CLASS="function"
|
---|
758 | >mb_http_input()</B
|
---|
759 | ></A
|
---|
760 | > to
|
---|
761 | detect character encoding used by browsers.
|
---|
762 | </P
|
---|
763 | ><P
|
---|
764 | > If <TT
|
---|
765 | CLASS="literal"
|
---|
766 | >enctype</TT
|
---|
767 | > is set to
|
---|
768 | <TT
|
---|
769 | CLASS="literal"
|
---|
770 | >multipart/form-data</TT
|
---|
771 | > in HTML forms,
|
---|
772 | <TT
|
---|
773 | CLASS="literal"
|
---|
774 | >mbstring</TT
|
---|
775 | > does not convert character encoding
|
---|
776 | in POST data. The user must convert them in the script, if
|
---|
777 | conversion is needed.
|
---|
778 | </P
|
---|
779 | ><P
|
---|
780 | > Although, browsers are smart enough to detect character encoding
|
---|
781 | in HTML. <TT
|
---|
782 | CLASS="literal"
|
---|
783 | >charset</TT
|
---|
784 | > is better to be set in HTTP
|
---|
785 | header. Change <TT
|
---|
786 | CLASS="literal"
|
---|
787 | >default_charset</TT
|
---|
788 | > according to
|
---|
789 | character encoding.
|
---|
790 | </P
|
---|
791 | ><P
|
---|
792 | > <TABLE
|
---|
793 | WIDTH="100%"
|
---|
794 | BORDER="0"
|
---|
795 | CELLPADDING="0"
|
---|
796 | CELLSPACING="0"
|
---|
797 | CLASS="EXAMPLE"
|
---|
798 | ><TR
|
---|
799 | ><TD
|
---|
800 | ><DIV
|
---|
801 | CLASS="example"
|
---|
802 | ><A
|
---|
803 | NAME="AEN41535"
|
---|
804 | ></A
|
---|
805 | ><P
|
---|
806 | ><B
|
---|
807 | >Pøíklad 1. <TT
|
---|
808 | CLASS="filename"
|
---|
809 | >php.ini</TT
|
---|
810 | > setting example</B
|
---|
811 | ></P
|
---|
812 | ><TABLE
|
---|
813 | BORDER="0"
|
---|
814 | BGCOLOR="#E0E0E0"
|
---|
815 | CELLPADDING="5"
|
---|
816 | ><TR
|
---|
817 | ><TD
|
---|
818 | ><PRE
|
---|
819 | CLASS="programlisting"
|
---|
820 | >; Set default language
|
---|
821 | mbstring.language = English; Set default language to English (default)
|
---|
822 | mbstring.language = Japanese; Set default language to Japanese
|
---|
823 |
|
---|
824 | ;; Set default internal encoding
|
---|
825 | ;; Note: Make sure to use character encoding works with PHP
|
---|
826 | mbstring.internal_encoding = UTF-8 ; Set internal encoding to UTF-8
|
---|
827 |
|
---|
828 | ;; HTTP input encoding translation is enabled.
|
---|
829 | mbstring.encoding_translation = On
|
---|
830 |
|
---|
831 | ;; Set default HTTP input character encoding
|
---|
832 | ;; Note: Script cannot change http_input setting.
|
---|
833 | mbstring.http_input = pass ; No conversion.
|
---|
834 | mbstring.http_input = auto ; Set HTTP input to auto
|
---|
835 | ; "auto" is expanded to "ASCII,JIS,UTF-8,EUC-JP,SJIS"
|
---|
836 | mbstring.http_input = SJIS ; Set HTTP2 input to SJIS
|
---|
837 | mbstring.http_input = UTF-8,SJIS,EUC-JP ; Specify order
|
---|
838 |
|
---|
839 | ;; Set default HTTP output character encoding
|
---|
840 | mbstring.http_output = pass ; No conversion
|
---|
841 | mbstring.http_output = UTF-8 ; Set HTTP output encoding to UTF-8
|
---|
842 |
|
---|
843 | ;; Set default character encoding detection order
|
---|
844 | mbstring.detect_order = auto ; Set detect order to auto
|
---|
845 | mbstring.detect_order = ASCII,JIS,UTF-8,SJIS,EUC-JP ; Specify order
|
---|
846 |
|
---|
847 | ;; Set default substitute character
|
---|
848 | mbstring.substitute_character = 12307 ; Specify Unicode value
|
---|
849 | mbstring.substitute_character = none ; Do not print character
|
---|
850 | mbstring.substitute_character = long ; Long Example: U+3000,JIS+7E7E</PRE
|
---|
851 | ></TD
|
---|
852 | ></TR
|
---|
853 | ></TABLE
|
---|
854 | ></DIV
|
---|
855 | ></TD
|
---|
856 | ></TR
|
---|
857 | ></TABLE
|
---|
858 | >
|
---|
859 | </P
|
---|
860 | ><P
|
---|
861 | > <TABLE
|
---|
862 | WIDTH="100%"
|
---|
863 | BORDER="0"
|
---|
864 | CELLPADDING="0"
|
---|
865 | CELLSPACING="0"
|
---|
866 | CLASS="EXAMPLE"
|
---|
867 | ><TR
|
---|
868 | ><TD
|
---|
869 | ><DIV
|
---|
870 | CLASS="example"
|
---|
871 | ><A
|
---|
872 | NAME="AEN41540"
|
---|
873 | ></A
|
---|
874 | ><P
|
---|
875 | ><B
|
---|
876 | >Pøíklad 2. <TT
|
---|
877 | CLASS="filename"
|
---|
878 | >php.ini</TT
|
---|
879 | > setting for <TT
|
---|
880 | CLASS="literal"
|
---|
881 | >EUC-JP</TT
|
---|
882 | > users</B
|
---|
883 | ></P
|
---|
884 | ><TABLE
|
---|
885 | BORDER="0"
|
---|
886 | BGCOLOR="#E0E0E0"
|
---|
887 | CELLPADDING="5"
|
---|
888 | ><TR
|
---|
889 | ><TD
|
---|
890 | ><PRE
|
---|
891 | CLASS="programlisting"
|
---|
892 | >;; Disable Output Buffering
|
---|
893 | output_buffering = Off
|
---|
894 |
|
---|
895 | ;; Set HTTP header charset
|
---|
896 | default_charset = EUC-JP
|
---|
897 |
|
---|
898 | ;; Set default language to Japanese
|
---|
899 | mbstring.language = Japanese
|
---|
900 |
|
---|
901 | ;; HTTP input encoding translation is enabled.
|
---|
902 | mbstring.encoding_translation = On
|
---|
903 |
|
---|
904 | ;; Set HTTP input encoding conversion to auto
|
---|
905 | mbstring.http_input = auto
|
---|
906 |
|
---|
907 | ;; Convert HTTP output to EUC-JP
|
---|
908 | mbstring.http_output = EUC-JP
|
---|
909 |
|
---|
910 | ;; Set internal encoding to EUC-JP
|
---|
911 | mbstring.internal_encoding = EUC-JP
|
---|
912 |
|
---|
913 | ;; Do not print invalid characters
|
---|
914 | mbstring.substitute_character = none</PRE
|
---|
915 | ></TD
|
---|
916 | ></TR
|
---|
917 | ></TABLE
|
---|
918 | ></DIV
|
---|
919 | ></TD
|
---|
920 | ></TR
|
---|
921 | ></TABLE
|
---|
922 | >
|
---|
923 | </P
|
---|
924 | ><P
|
---|
925 | > <TABLE
|
---|
926 | WIDTH="100%"
|
---|
927 | BORDER="0"
|
---|
928 | CELLPADDING="0"
|
---|
929 | CELLSPACING="0"
|
---|
930 | CLASS="EXAMPLE"
|
---|
931 | ><TR
|
---|
932 | ><TD
|
---|
933 | ><DIV
|
---|
934 | CLASS="example"
|
---|
935 | ><A
|
---|
936 | NAME="AEN41546"
|
---|
937 | ></A
|
---|
938 | ><P
|
---|
939 | ><B
|
---|
940 | >Pøíklad 3. <TT
|
---|
941 | CLASS="filename"
|
---|
942 | >php.ini</TT
|
---|
943 | > setting for <TT
|
---|
944 | CLASS="literal"
|
---|
945 | >SJIS</TT
|
---|
946 | > users</B
|
---|
947 | ></P
|
---|
948 | ><TABLE
|
---|
949 | BORDER="0"
|
---|
950 | BGCOLOR="#E0E0E0"
|
---|
951 | CELLPADDING="5"
|
---|
952 | ><TR
|
---|
953 | ><TD
|
---|
954 | ><PRE
|
---|
955 | CLASS="programlisting"
|
---|
956 | >;; Enable Output Buffering
|
---|
957 | output_buffering = On
|
---|
958 |
|
---|
959 | ;; Set mb_output_handler to enable output conversion
|
---|
960 | output_handler = mb_output_handler
|
---|
961 |
|
---|
962 | ;; Set HTTP header charset
|
---|
963 | default_charset = Shift_JIS
|
---|
964 |
|
---|
965 | ;; Set default language to Japanese
|
---|
966 | mbstring.language = Japanese
|
---|
967 |
|
---|
968 | ;; Set http input encoding conversion to auto
|
---|
969 | mbstring.http_input = auto
|
---|
970 |
|
---|
971 | ;; Convert to SJIS
|
---|
972 | mbstring.http_output = SJIS
|
---|
973 |
|
---|
974 | ;; Set internal encoding to EUC-JP
|
---|
975 | mbstring.internal_encoding = EUC-JP
|
---|
976 |
|
---|
977 | ;; Do not print invalid characters
|
---|
978 | mbstring.substitute_character = none</PRE
|
---|
979 | ></TD
|
---|
980 | ></TR
|
---|
981 | ></TABLE
|
---|
982 | ></DIV
|
---|
983 | ></TD
|
---|
984 | ></TR
|
---|
985 | ></TABLE
|
---|
986 | >
|
---|
987 | </P
|
---|
988 | ></DIV
|
---|
989 | ><DIV
|
---|
990 | CLASS="section"
|
---|
991 | ><H1
|
---|
992 | CLASS="section"
|
---|
993 | ><A
|
---|
994 | NAME="mbstring.resources"
|
---|
995 | ></A
|
---|
996 | >Typy prostøedkù</H1
|
---|
997 | ><P
|
---|
998 | >Toto roz¹íøení nemá definován ¾ádný typ prostøedku
|
---|
999 | (resource).</P
|
---|
1000 | ></DIV
|
---|
1001 | ><DIV
|
---|
1002 | CLASS="section"
|
---|
1003 | ><H1
|
---|
1004 | CLASS="section"
|
---|
1005 | ><A
|
---|
1006 | NAME="mbstring.constants"
|
---|
1007 | ></A
|
---|
1008 | >Pøeddefinované konstanty</H1
|
---|
1009 | ><P
|
---|
1010 | > Tyto konstanty jsou definovány tímto roz¹íøením a budou k dispozici pouze
|
---|
1011 | tehdy, bylo-li roz¹íøení zkompilováno spoleènì s PHP nebo dynamicky zavedeno
|
---|
1012 | za bìhu.
|
---|
1013 | </P
|
---|
1014 | ><P
|
---|
1015 | ></P
|
---|
1016 | ><DIV
|
---|
1017 | CLASS="variablelist"
|
---|
1018 | ><DL
|
---|
1019 | ><DT
|
---|
1020 | ><TT
|
---|
1021 | CLASS="constant"
|
---|
1022 | ><B
|
---|
1023 | >MB_OVERLOAD_MAIL</B
|
---|
1024 | ></TT
|
---|
1025 | >
|
---|
1026 | (<A
|
---|
1027 | HREF="language.types.integer.html"
|
---|
1028 | >integer</A
|
---|
1029 | >)</DT
|
---|
1030 | ><DD
|
---|
1031 | ><P
|
---|
1032 | >
|
---|
1033 | </P
|
---|
1034 | ></DD
|
---|
1035 | ><DT
|
---|
1036 | ><TT
|
---|
1037 | CLASS="constant"
|
---|
1038 | ><B
|
---|
1039 | >MB_OVERLOAD_STRING</B
|
---|
1040 | ></TT
|
---|
1041 | >
|
---|
1042 | (<A
|
---|
1043 | HREF="language.types.integer.html"
|
---|
1044 | >integer</A
|
---|
1045 | >)</DT
|
---|
1046 | ><DD
|
---|
1047 | ><P
|
---|
1048 | >
|
---|
1049 | </P
|
---|
1050 | ></DD
|
---|
1051 | ><DT
|
---|
1052 | ><TT
|
---|
1053 | CLASS="constant"
|
---|
1054 | ><B
|
---|
1055 | >MB_OVERLOAD_REGEX</B
|
---|
1056 | ></TT
|
---|
1057 | >
|
---|
1058 | (<A
|
---|
1059 | HREF="language.types.integer.html"
|
---|
1060 | >integer</A
|
---|
1061 | >)</DT
|
---|
1062 | ><DD
|
---|
1063 | ><P
|
---|
1064 | >
|
---|
1065 | </P
|
---|
1066 | ></DD
|
---|
1067 | ></DL
|
---|
1068 | ></DIV
|
---|
1069 | ></DIV
|
---|
1070 | ><DIV
|
---|
1071 | CLASS="section"
|
---|
1072 | ><H1
|
---|
1073 | CLASS="section"
|
---|
1074 | ><A
|
---|
1075 | NAME="mbstring.http"
|
---|
1076 | ></A
|
---|
1077 | >HTTP Input and Output</H1
|
---|
1078 | ><P
|
---|
1079 | > HTTP input/output character encoding conversion may convert
|
---|
1080 | binary data also. Users are supposed to control character
|
---|
1081 | encoding conversion if binary data is used for HTTP
|
---|
1082 | input/output.
|
---|
1083 | </P
|
---|
1084 | ><P
|
---|
1085 | > If <TT
|
---|
1086 | CLASS="literal"
|
---|
1087 | >enctype</TT
|
---|
1088 | > for HTML form is set to
|
---|
1089 | <TT
|
---|
1090 | CLASS="literal"
|
---|
1091 | >multipart/form-data</TT
|
---|
1092 | >,
|
---|
1093 | <TT
|
---|
1094 | CLASS="literal"
|
---|
1095 | >mbstring</TT
|
---|
1096 | > does not convert character encoding
|
---|
1097 | in POST data. If it is the case, strings are needed to be
|
---|
1098 | converted to internal character encoding.
|
---|
1099 | </P
|
---|
1100 | ><P
|
---|
1101 | > <P
|
---|
1102 | ></P
|
---|
1103 | ><UL
|
---|
1104 | ><LI
|
---|
1105 | ><P
|
---|
1106 | > HTTP Input
|
---|
1107 | </P
|
---|
1108 | ><P
|
---|
1109 | >
|
---|
1110 | There is no way to control HTTP input character
|
---|
1111 | conversion from PHP script. To disable HTTP input character
|
---|
1112 | conversion, it has to be done in <TT
|
---|
1113 | CLASS="filename"
|
---|
1114 | >php.ini</TT
|
---|
1115 | >.
|
---|
1116 | <TABLE
|
---|
1117 | WIDTH="100%"
|
---|
1118 | BORDER="0"
|
---|
1119 | CELLPADDING="0"
|
---|
1120 | CELLSPACING="0"
|
---|
1121 | CLASS="EXAMPLE"
|
---|
1122 | ><TR
|
---|
1123 | ><TD
|
---|
1124 | ><DIV
|
---|
1125 | CLASS="example"
|
---|
1126 | ><A
|
---|
1127 | NAME="AEN41589"
|
---|
1128 | ></A
|
---|
1129 | ><P
|
---|
1130 | ><B
|
---|
1131 | >Pøíklad 4.
|
---|
1132 | Disable HTTP input conversion in <TT
|
---|
1133 | CLASS="filename"
|
---|
1134 | >php.ini</TT
|
---|
1135 | >
|
---|
1136 | </B
|
---|
1137 | ></P
|
---|
1138 | ><TABLE
|
---|
1139 | BORDER="0"
|
---|
1140 | BGCOLOR="#E0E0E0"
|
---|
1141 | CELLPADDING="5"
|
---|
1142 | ><TR
|
---|
1143 | ><TD
|
---|
1144 | ><PRE
|
---|
1145 | CLASS="php"
|
---|
1146 | >;; Disable HTTP Input conversion
|
---|
1147 | mbstring.http_input = pass
|
---|
1148 | ;; Disable HTTP Input conversion (PHP 4.3.0 or higher)
|
---|
1149 | mbstring.encoding_translation = Off</PRE
|
---|
1150 | ></TD
|
---|
1151 | ></TR
|
---|
1152 | ></TABLE
|
---|
1153 | ></DIV
|
---|
1154 | ></TD
|
---|
1155 | ></TR
|
---|
1156 | ></TABLE
|
---|
1157 | >
|
---|
1158 | </P
|
---|
1159 | ><P
|
---|
1160 | > When using PHP as an Apache module, it is possible to
|
---|
1161 | override PHP ini setting per Virtual Host in
|
---|
1162 | <TT
|
---|
1163 | CLASS="literal"
|
---|
1164 | >httpd.conf</TT
|
---|
1165 | > or per directory with
|
---|
1166 | <TT
|
---|
1167 | CLASS="literal"
|
---|
1168 | >.htaccess</TT
|
---|
1169 | >. Refer to the <A
|
---|
1170 | HREF="configuration.html"
|
---|
1171 | >Configuration</A
|
---|
1172 | > section and
|
---|
1173 | Apache Manual for details.
|
---|
1174 | </P
|
---|
1175 | ></LI
|
---|
1176 | ><LI
|
---|
1177 | ><P
|
---|
1178 | > HTTP Output
|
---|
1179 | </P
|
---|
1180 | ><P
|
---|
1181 | > There are several ways to enable output character encoding
|
---|
1182 | conversion. One is using <TT
|
---|
1183 | CLASS="filename"
|
---|
1184 | >php.ini</TT
|
---|
1185 | >, another
|
---|
1186 | is using <A
|
---|
1187 | HREF="function.ob-start.html"
|
---|
1188 | ><B
|
---|
1189 | CLASS="function"
|
---|
1190 | >ob_start()</B
|
---|
1191 | ></A
|
---|
1192 | > with
|
---|
1193 | <A
|
---|
1194 | HREF="function.mb-output-handler.html"
|
---|
1195 | ><B
|
---|
1196 | CLASS="function"
|
---|
1197 | >mb_output_handler()</B
|
---|
1198 | ></A
|
---|
1199 | > as
|
---|
1200 | <TT
|
---|
1201 | CLASS="literal"
|
---|
1202 | >ob_start</TT
|
---|
1203 | > callback function.
|
---|
1204 | </P
|
---|
1205 | ><DIV
|
---|
1206 | CLASS="note"
|
---|
1207 | ><BLOCKQUOTE
|
---|
1208 | CLASS="note"
|
---|
1209 | ><P
|
---|
1210 | ><B
|
---|
1211 | >Poznámka: </B
|
---|
1212 | >
|
---|
1213 | For PHP3-i18n users, <TT
|
---|
1214 | CLASS="literal"
|
---|
1215 | >mbstring</TT
|
---|
1216 | >'s output
|
---|
1217 | conversion differs from PHP3-i18n. Character encoding is
|
---|
1218 | converted using output buffer.
|
---|
1219 | </P
|
---|
1220 | ></BLOCKQUOTE
|
---|
1221 | ></DIV
|
---|
1222 | ></LI
|
---|
1223 | ></UL
|
---|
1224 | >
|
---|
1225 | </P
|
---|
1226 | ><P
|
---|
1227 | > <TABLE
|
---|
1228 | WIDTH="100%"
|
---|
1229 | BORDER="0"
|
---|
1230 | CELLPADDING="0"
|
---|
1231 | CELLSPACING="0"
|
---|
1232 | CLASS="EXAMPLE"
|
---|
1233 | ><TR
|
---|
1234 | ><TD
|
---|
1235 | ><DIV
|
---|
1236 | CLASS="example"
|
---|
1237 | ><A
|
---|
1238 | NAME="AEN41608"
|
---|
1239 | ></A
|
---|
1240 | ><P
|
---|
1241 | ><B
|
---|
1242 | >Pøíklad 5. <TT
|
---|
1243 | CLASS="filename"
|
---|
1244 | >php.ini</TT
|
---|
1245 | > setting example</B
|
---|
1246 | ></P
|
---|
1247 | ><TABLE
|
---|
1248 | BORDER="0"
|
---|
1249 | BGCOLOR="#E0E0E0"
|
---|
1250 | CELLPADDING="5"
|
---|
1251 | ><TR
|
---|
1252 | ><TD
|
---|
1253 | ><PRE
|
---|
1254 | CLASS="programlisting"
|
---|
1255 | >;; Enable output character encoding conversion for all PHP pages
|
---|
1256 |
|
---|
1257 | ;; Enable Output Buffering
|
---|
1258 | output_buffering = On
|
---|
1259 |
|
---|
1260 | ;; Set mb_output_handler to enable output conversion
|
---|
1261 | output_handler = mb_output_handler</PRE
|
---|
1262 | ></TD
|
---|
1263 | ></TR
|
---|
1264 | ></TABLE
|
---|
1265 | ></DIV
|
---|
1266 | ></TD
|
---|
1267 | ></TR
|
---|
1268 | ></TABLE
|
---|
1269 | >
|
---|
1270 | </P
|
---|
1271 | ><P
|
---|
1272 | > <TABLE
|
---|
1273 | WIDTH="100%"
|
---|
1274 | BORDER="0"
|
---|
1275 | CELLPADDING="0"
|
---|
1276 | CELLSPACING="0"
|
---|
1277 | CLASS="EXAMPLE"
|
---|
1278 | ><TR
|
---|
1279 | ><TD
|
---|
1280 | ><DIV
|
---|
1281 | CLASS="example"
|
---|
1282 | ><A
|
---|
1283 | NAME="AEN41613"
|
---|
1284 | ></A
|
---|
1285 | ><P
|
---|
1286 | ><B
|
---|
1287 | >Pøíklad 6. Script example</B
|
---|
1288 | ></P
|
---|
1289 | ><TABLE
|
---|
1290 | BORDER="0"
|
---|
1291 | BGCOLOR="#E0E0E0"
|
---|
1292 | CELLPADDING="5"
|
---|
1293 | ><TR
|
---|
1294 | ><TD
|
---|
1295 | ><PRE
|
---|
1296 | CLASS="php"
|
---|
1297 | ><?php
|
---|
1298 |
|
---|
1299 | // Enable output character encoding conversion only for this page
|
---|
1300 |
|
---|
1301 | // Set HTTP output character encoding to SJIS
|
---|
1302 | mb_http_output('SJIS');
|
---|
1303 |
|
---|
1304 | // Start buffering and specify "mb_output_handler" as
|
---|
1305 | // callback function
|
---|
1306 | ob_start('mb_output_handler');
|
---|
1307 |
|
---|
1308 | ?></PRE
|
---|
1309 | ></TD
|
---|
1310 | ></TR
|
---|
1311 | ></TABLE
|
---|
1312 | ></DIV
|
---|
1313 | ></TD
|
---|
1314 | ></TR
|
---|
1315 | ></TABLE
|
---|
1316 | >
|
---|
1317 | </P
|
---|
1318 | ></DIV
|
---|
1319 | ><DIV
|
---|
1320 | CLASS="section"
|
---|
1321 | ><H1
|
---|
1322 | CLASS="section"
|
---|
1323 | ><A
|
---|
1324 | NAME="mbstring.encodings"
|
---|
1325 | ></A
|
---|
1326 | >Supported Character Encodings</H1
|
---|
1327 | ><P
|
---|
1328 | > Currently, the following character encoding is supported by the
|
---|
1329 | <TT
|
---|
1330 | CLASS="literal"
|
---|
1331 | >mbstring</TT
|
---|
1332 | > module. Character encoding may
|
---|
1333 | be specified for <TT
|
---|
1334 | CLASS="literal"
|
---|
1335 | >mbstring</TT
|
---|
1336 | > functions'
|
---|
1337 | <TT
|
---|
1338 | CLASS="literal"
|
---|
1339 | >encoding</TT
|
---|
1340 | > parameter.
|
---|
1341 | </P
|
---|
1342 | ><P
|
---|
1343 | > The following character encoding is supported in this PHP
|
---|
1344 | extension:
|
---|
1345 | </P
|
---|
1346 | ><P
|
---|
1347 | > <TT
|
---|
1348 | CLASS="literal"
|
---|
1349 | >UCS-4</TT
|
---|
1350 | >, <TT
|
---|
1351 | CLASS="literal"
|
---|
1352 | >UCS-4BE</TT
|
---|
1353 | >,
|
---|
1354 | <TT
|
---|
1355 | CLASS="literal"
|
---|
1356 | >UCS-4LE</TT
|
---|
1357 | >, <TT
|
---|
1358 | CLASS="literal"
|
---|
1359 | >UCS-2</TT
|
---|
1360 | >,
|
---|
1361 | <TT
|
---|
1362 | CLASS="literal"
|
---|
1363 | >UCS-2BE</TT
|
---|
1364 | >, <TT
|
---|
1365 | CLASS="literal"
|
---|
1366 | >UCS-2LE</TT
|
---|
1367 | >,
|
---|
1368 | <TT
|
---|
1369 | CLASS="literal"
|
---|
1370 | >UTF-32</TT
|
---|
1371 | >, <TT
|
---|
1372 | CLASS="literal"
|
---|
1373 | >UTF-32BE</TT
|
---|
1374 | >,
|
---|
1375 | <TT
|
---|
1376 | CLASS="literal"
|
---|
1377 | >UTF-32LE</TT
|
---|
1378 | >, <TT
|
---|
1379 | CLASS="literal"
|
---|
1380 | >UCS-2LE</TT
|
---|
1381 | >,
|
---|
1382 | <TT
|
---|
1383 | CLASS="literal"
|
---|
1384 | >UTF-16</TT
|
---|
1385 | >, <TT
|
---|
1386 | CLASS="literal"
|
---|
1387 | >UTF-16BE</TT
|
---|
1388 | >,
|
---|
1389 | <TT
|
---|
1390 | CLASS="literal"
|
---|
1391 | >UTF-16LE</TT
|
---|
1392 | >, <TT
|
---|
1393 | CLASS="literal"
|
---|
1394 | >UTF-8</TT
|
---|
1395 | >,
|
---|
1396 | <TT
|
---|
1397 | CLASS="literal"
|
---|
1398 | >UTF-7</TT
|
---|
1399 | >, <TT
|
---|
1400 | CLASS="literal"
|
---|
1401 | >ASCII</TT
|
---|
1402 | >,
|
---|
1403 | <TT
|
---|
1404 | CLASS="literal"
|
---|
1405 | >EUC-JP</TT
|
---|
1406 | >, <TT
|
---|
1407 | CLASS="literal"
|
---|
1408 | >SJIS</TT
|
---|
1409 | >,
|
---|
1410 | <TT
|
---|
1411 | CLASS="literal"
|
---|
1412 | >eucJP-win</TT
|
---|
1413 | >, <TT
|
---|
1414 | CLASS="literal"
|
---|
1415 | >SJIS-win</TT
|
---|
1416 | >,
|
---|
1417 | <TT
|
---|
1418 | CLASS="literal"
|
---|
1419 | >ISO-2022-JP</TT
|
---|
1420 | >, <TT
|
---|
1421 | CLASS="literal"
|
---|
1422 | >JIS</TT
|
---|
1423 | >,
|
---|
1424 | <TT
|
---|
1425 | CLASS="literal"
|
---|
1426 | >ISO-8859-1</TT
|
---|
1427 | >, <TT
|
---|
1428 | CLASS="literal"
|
---|
1429 | >ISO-8859-2</TT
|
---|
1430 | >,
|
---|
1431 | <TT
|
---|
1432 | CLASS="literal"
|
---|
1433 | >ISO-8859-3</TT
|
---|
1434 | >, <TT
|
---|
1435 | CLASS="literal"
|
---|
1436 | >ISO-8859-4</TT
|
---|
1437 | >,
|
---|
1438 | <TT
|
---|
1439 | CLASS="literal"
|
---|
1440 | >ISO-8859-5</TT
|
---|
1441 | >, <TT
|
---|
1442 | CLASS="literal"
|
---|
1443 | >ISO-8859-6</TT
|
---|
1444 | >,
|
---|
1445 | <TT
|
---|
1446 | CLASS="literal"
|
---|
1447 | >ISO-8859-7</TT
|
---|
1448 | >, <TT
|
---|
1449 | CLASS="literal"
|
---|
1450 | >ISO-8859-8</TT
|
---|
1451 | >,
|
---|
1452 | <TT
|
---|
1453 | CLASS="literal"
|
---|
1454 | >ISO-8859-9</TT
|
---|
1455 | >, <TT
|
---|
1456 | CLASS="literal"
|
---|
1457 | >ISO-8859-10</TT
|
---|
1458 | >,
|
---|
1459 | <TT
|
---|
1460 | CLASS="literal"
|
---|
1461 | >ISO-8859-13</TT
|
---|
1462 | >, <TT
|
---|
1463 | CLASS="literal"
|
---|
1464 | >ISO-8859-14</TT
|
---|
1465 | >,
|
---|
1466 | <TT
|
---|
1467 | CLASS="literal"
|
---|
1468 | >ISO-8859-15</TT
|
---|
1469 | >, <TT
|
---|
1470 | CLASS="literal"
|
---|
1471 | >byte2be</TT
|
---|
1472 | >,
|
---|
1473 | <TT
|
---|
1474 | CLASS="literal"
|
---|
1475 | >byte2le</TT
|
---|
1476 | >, <TT
|
---|
1477 | CLASS="literal"
|
---|
1478 | >byte4be</TT
|
---|
1479 | >,
|
---|
1480 | <TT
|
---|
1481 | CLASS="literal"
|
---|
1482 | >byte4le</TT
|
---|
1483 | >, <TT
|
---|
1484 | CLASS="literal"
|
---|
1485 | >BASE64</TT
|
---|
1486 | >,
|
---|
1487 | <TT
|
---|
1488 | CLASS="literal"
|
---|
1489 | >7bit</TT
|
---|
1490 | >, <TT
|
---|
1491 | CLASS="literal"
|
---|
1492 | >8bit</TT
|
---|
1493 | > and
|
---|
1494 | <TT
|
---|
1495 | CLASS="literal"
|
---|
1496 | >UTF7-IMAP</TT
|
---|
1497 | >.
|
---|
1498 | </P
|
---|
1499 | ><P
|
---|
1500 | > As of PHP 4.3.0, the following character encoding support will be added
|
---|
1501 | experimentaly :
|
---|
1502 | <TT
|
---|
1503 | CLASS="literal"
|
---|
1504 | >EUC-CN</TT
|
---|
1505 | >, <TT
|
---|
1506 | CLASS="literal"
|
---|
1507 | >CP936</TT
|
---|
1508 | >, <TT
|
---|
1509 | CLASS="literal"
|
---|
1510 | >HZ</TT
|
---|
1511 | >,
|
---|
1512 | <TT
|
---|
1513 | CLASS="literal"
|
---|
1514 | >EUC-TW</TT
|
---|
1515 | >, <TT
|
---|
1516 | CLASS="literal"
|
---|
1517 | >CP950</TT
|
---|
1518 | >, <TT
|
---|
1519 | CLASS="literal"
|
---|
1520 | >BIG-5</TT
|
---|
1521 | >,
|
---|
1522 | <TT
|
---|
1523 | CLASS="literal"
|
---|
1524 | >EUC-KR</TT
|
---|
1525 | >, <TT
|
---|
1526 | CLASS="literal"
|
---|
1527 | >UHC</TT
|
---|
1528 | > (<TT
|
---|
1529 | CLASS="literal"
|
---|
1530 | >CP949</TT
|
---|
1531 | >),
|
---|
1532 | <TT
|
---|
1533 | CLASS="literal"
|
---|
1534 | >ISO-2022-KR</TT
|
---|
1535 | >,
|
---|
1536 | <TT
|
---|
1537 | CLASS="literal"
|
---|
1538 | >Windows-1251</TT
|
---|
1539 | > (<TT
|
---|
1540 | CLASS="literal"
|
---|
1541 | >CP1251</TT
|
---|
1542 | >),
|
---|
1543 | <TT
|
---|
1544 | CLASS="literal"
|
---|
1545 | >Windows-1252</TT
|
---|
1546 | > (<TT
|
---|
1547 | CLASS="literal"
|
---|
1548 | >CP1252</TT
|
---|
1549 | >),
|
---|
1550 | <TT
|
---|
1551 | CLASS="literal"
|
---|
1552 | >CP866</TT
|
---|
1553 | >,
|
---|
1554 | <TT
|
---|
1555 | CLASS="literal"
|
---|
1556 | >KOI8-R</TT
|
---|
1557 | >.
|
---|
1558 | </P
|
---|
1559 | ><P
|
---|
1560 | > <TT
|
---|
1561 | CLASS="filename"
|
---|
1562 | >php.ini</TT
|
---|
1563 | > entry, which accepts encoding name,
|
---|
1564 | accepts "<TT
|
---|
1565 | CLASS="literal"
|
---|
1566 | >auto</TT
|
---|
1567 | >" and
|
---|
1568 | "<TT
|
---|
1569 | CLASS="literal"
|
---|
1570 | >pass</TT
|
---|
1571 | >" also.
|
---|
1572 | <TT
|
---|
1573 | CLASS="literal"
|
---|
1574 | >mbstring</TT
|
---|
1575 | > functions, which accepts encoding
|
---|
1576 | name, and accepts "<TT
|
---|
1577 | CLASS="literal"
|
---|
1578 | >auto</TT
|
---|
1579 | >".
|
---|
1580 | </P
|
---|
1581 | ><P
|
---|
1582 | > If "<TT
|
---|
1583 | CLASS="literal"
|
---|
1584 | >pass</TT
|
---|
1585 | >" is set, no character
|
---|
1586 | encoding conversion is performed.
|
---|
1587 | </P
|
---|
1588 | ><P
|
---|
1589 | > If "<TT
|
---|
1590 | CLASS="literal"
|
---|
1591 | >auto</TT
|
---|
1592 | >" is set, it is expanded to
|
---|
1593 | "<TT
|
---|
1594 | CLASS="literal"
|
---|
1595 | >ASCII,JIS,UTF-8,EUC-JP,SJIS</TT
|
---|
1596 | >".
|
---|
1597 | </P
|
---|
1598 | ><P
|
---|
1599 | > See also <A
|
---|
1600 | HREF="function.mb-detect-order.html"
|
---|
1601 | ><B
|
---|
1602 | CLASS="function"
|
---|
1603 | >mb_detect_order()</B
|
---|
1604 | ></A
|
---|
1605 | >
|
---|
1606 | </P
|
---|
1607 | ><DIV
|
---|
1608 | CLASS="note"
|
---|
1609 | ><BLOCKQUOTE
|
---|
1610 | CLASS="note"
|
---|
1611 | ><P
|
---|
1612 | ><B
|
---|
1613 | >Poznámka: </B
|
---|
1614 | >
|
---|
1615 | "Supported character encoding" does not mean that it
|
---|
1616 | works as internal character code.
|
---|
1617 | </P
|
---|
1618 | ></BLOCKQUOTE
|
---|
1619 | ></DIV
|
---|
1620 | ></DIV
|
---|
1621 | ><DIV
|
---|
1622 | CLASS="section"
|
---|
1623 | ><H1
|
---|
1624 | CLASS="section"
|
---|
1625 | ><A
|
---|
1626 | NAME="mbstring.overload"
|
---|
1627 | ></A
|
---|
1628 | >Overloading PHP string functions with multi byte string functions</H1
|
---|
1629 | ><P
|
---|
1630 | > Because almost PHP application written for language using
|
---|
1631 | single-byte character encoding, there are some difficulties for
|
---|
1632 | multibyte string handling including japanese. Almost PHP string
|
---|
1633 | functions such as <A
|
---|
1634 | HREF="function.substr.html"
|
---|
1635 | ><B
|
---|
1636 | CLASS="function"
|
---|
1637 | >substr()</B
|
---|
1638 | ></A
|
---|
1639 | > do not support
|
---|
1640 | multibyte string.
|
---|
1641 | </P
|
---|
1642 | ><P
|
---|
1643 | > Multibyte extension (mbstring) has some PHP string functions
|
---|
1644 | with multibyte support (ex. <A
|
---|
1645 | HREF="function.substr.html"
|
---|
1646 | ><B
|
---|
1647 | CLASS="function"
|
---|
1648 | >substr()</B
|
---|
1649 | ></A
|
---|
1650 | > supports
|
---|
1651 | <A
|
---|
1652 | HREF="function.mb-substr.html"
|
---|
1653 | ><B
|
---|
1654 | CLASS="function"
|
---|
1655 | >mb_substr()</B
|
---|
1656 | ></A
|
---|
1657 | >).
|
---|
1658 | </P
|
---|
1659 | ><P
|
---|
1660 | > Multibyte extension (mbstring) also supports 'function
|
---|
1661 | overloading' to add multibyte string functionality without
|
---|
1662 | code modification. Using function overloading, some PHP string
|
---|
1663 | functions will be oveloaded multibyte string functions.
|
---|
1664 | For example, <A
|
---|
1665 | HREF="function.mb-substr.html"
|
---|
1666 | ><B
|
---|
1667 | CLASS="function"
|
---|
1668 | >mb_substr()</B
|
---|
1669 | ></A
|
---|
1670 | > is called
|
---|
1671 | instead of <A
|
---|
1672 | HREF="function.substr.html"
|
---|
1673 | ><B
|
---|
1674 | CLASS="function"
|
---|
1675 | >substr()</B
|
---|
1676 | ></A
|
---|
1677 | > if function overloading
|
---|
1678 | is enabled. Function overload makes easy to port application
|
---|
1679 | supporting only single-byte encoding for multibyte application.
|
---|
1680 | </P
|
---|
1681 | ><P
|
---|
1682 | > <TT
|
---|
1683 | CLASS="literal"
|
---|
1684 | >mbstring.func_overload</TT
|
---|
1685 | > in <TT
|
---|
1686 | CLASS="filename"
|
---|
1687 | >php.ini</TT
|
---|
1688 | > should be
|
---|
1689 | set some positive value to use function overloading.
|
---|
1690 | The value should specify the category of overloading functions,
|
---|
1691 | sbould be set 1 to enable mail function overloading. 2 to enable
|
---|
1692 | string functions, 4 to regular expression functions. For
|
---|
1693 | example, if is set for 7, mail, strings, regex functions should
|
---|
1694 | be overloaded. The list of overloaded functions are shown in
|
---|
1695 | below.
|
---|
1696 | <DIV
|
---|
1697 | CLASS="table"
|
---|
1698 | ><A
|
---|
1699 | NAME="AEN41712"
|
---|
1700 | ></A
|
---|
1701 | ><P
|
---|
1702 | ><B
|
---|
1703 | >Tabulka 2. Functions to be overloaded</B
|
---|
1704 | ></P
|
---|
1705 | ><TABLE
|
---|
1706 | BORDER="1"
|
---|
1707 | CLASS="CALSTABLE"
|
---|
1708 | ><THEAD
|
---|
1709 | ><TR
|
---|
1710 | ><TH
|
---|
1711 | ALIGN="LEFT"
|
---|
1712 | VALIGN="MIDDLE"
|
---|
1713 | >value of mbstring.func_overload</TH
|
---|
1714 | ><TH
|
---|
1715 | ALIGN="LEFT"
|
---|
1716 | VALIGN="MIDDLE"
|
---|
1717 | >original function</TH
|
---|
1718 | ><TH
|
---|
1719 | ALIGN="LEFT"
|
---|
1720 | VALIGN="MIDDLE"
|
---|
1721 | >overloaded function</TH
|
---|
1722 | ></TR
|
---|
1723 | ></THEAD
|
---|
1724 | ><TBODY
|
---|
1725 | ><TR
|
---|
1726 | ><TD
|
---|
1727 | ALIGN="LEFT"
|
---|
1728 | VALIGN="MIDDLE"
|
---|
1729 | >1</TD
|
---|
1730 | ><TD
|
---|
1731 | ALIGN="LEFT"
|
---|
1732 | VALIGN="MIDDLE"
|
---|
1733 | ><A
|
---|
1734 | HREF="function.mail.html"
|
---|
1735 | ><B
|
---|
1736 | CLASS="function"
|
---|
1737 | >mail()</B
|
---|
1738 | ></A
|
---|
1739 | ></TD
|
---|
1740 | ><TD
|
---|
1741 | ALIGN="LEFT"
|
---|
1742 | VALIGN="MIDDLE"
|
---|
1743 | ><A
|
---|
1744 | HREF="function.mb-send-mail.html"
|
---|
1745 | ><B
|
---|
1746 | CLASS="function"
|
---|
1747 | >mb_send_mail()</B
|
---|
1748 | ></A
|
---|
1749 | ></TD
|
---|
1750 | ></TR
|
---|
1751 | ><TR
|
---|
1752 | ><TD
|
---|
1753 | ALIGN="LEFT"
|
---|
1754 | VALIGN="MIDDLE"
|
---|
1755 | >2</TD
|
---|
1756 | ><TD
|
---|
1757 | ALIGN="LEFT"
|
---|
1758 | VALIGN="MIDDLE"
|
---|
1759 | ><A
|
---|
1760 | HREF="function.strlen.html"
|
---|
1761 | ><B
|
---|
1762 | CLASS="function"
|
---|
1763 | >strlen()</B
|
---|
1764 | ></A
|
---|
1765 | ></TD
|
---|
1766 | ><TD
|
---|
1767 | ALIGN="LEFT"
|
---|
1768 | VALIGN="MIDDLE"
|
---|
1769 | ><A
|
---|
1770 | HREF="function.mb-strlen.html"
|
---|
1771 | ><B
|
---|
1772 | CLASS="function"
|
---|
1773 | >mb_strlen()</B
|
---|
1774 | ></A
|
---|
1775 | ></TD
|
---|
1776 | ></TR
|
---|
1777 | ><TR
|
---|
1778 | ><TD
|
---|
1779 | ALIGN="LEFT"
|
---|
1780 | VALIGN="MIDDLE"
|
---|
1781 | >2</TD
|
---|
1782 | ><TD
|
---|
1783 | ALIGN="LEFT"
|
---|
1784 | VALIGN="MIDDLE"
|
---|
1785 | ><A
|
---|
1786 | HREF="function.strpos.html"
|
---|
1787 | ><B
|
---|
1788 | CLASS="function"
|
---|
1789 | >strpos()</B
|
---|
1790 | ></A
|
---|
1791 | ></TD
|
---|
1792 | ><TD
|
---|
1793 | ALIGN="LEFT"
|
---|
1794 | VALIGN="MIDDLE"
|
---|
1795 | ><A
|
---|
1796 | HREF="function.mb-strpos.html"
|
---|
1797 | ><B
|
---|
1798 | CLASS="function"
|
---|
1799 | >mb_strpos()</B
|
---|
1800 | ></A
|
---|
1801 | ></TD
|
---|
1802 | ></TR
|
---|
1803 | ><TR
|
---|
1804 | ><TD
|
---|
1805 | ALIGN="LEFT"
|
---|
1806 | VALIGN="MIDDLE"
|
---|
1807 | >2</TD
|
---|
1808 | ><TD
|
---|
1809 | ALIGN="LEFT"
|
---|
1810 | VALIGN="MIDDLE"
|
---|
1811 | ><A
|
---|
1812 | HREF="function.strrpos.html"
|
---|
1813 | ><B
|
---|
1814 | CLASS="function"
|
---|
1815 | >strrpos()</B
|
---|
1816 | ></A
|
---|
1817 | ></TD
|
---|
1818 | ><TD
|
---|
1819 | ALIGN="LEFT"
|
---|
1820 | VALIGN="MIDDLE"
|
---|
1821 | ><A
|
---|
1822 | HREF="function.mb-strrpos.html"
|
---|
1823 | ><B
|
---|
1824 | CLASS="function"
|
---|
1825 | >mb_strrpos()</B
|
---|
1826 | ></A
|
---|
1827 | ></TD
|
---|
1828 | ></TR
|
---|
1829 | ><TR
|
---|
1830 | ><TD
|
---|
1831 | ALIGN="LEFT"
|
---|
1832 | VALIGN="MIDDLE"
|
---|
1833 | >2</TD
|
---|
1834 | ><TD
|
---|
1835 | ALIGN="LEFT"
|
---|
1836 | VALIGN="MIDDLE"
|
---|
1837 | ><A
|
---|
1838 | HREF="function.substr.html"
|
---|
1839 | ><B
|
---|
1840 | CLASS="function"
|
---|
1841 | >substr()</B
|
---|
1842 | ></A
|
---|
1843 | ></TD
|
---|
1844 | ><TD
|
---|
1845 | ALIGN="LEFT"
|
---|
1846 | VALIGN="MIDDLE"
|
---|
1847 | ><A
|
---|
1848 | HREF="function.mb-substr.html"
|
---|
1849 | ><B
|
---|
1850 | CLASS="function"
|
---|
1851 | >mb_substr()</B
|
---|
1852 | ></A
|
---|
1853 | ></TD
|
---|
1854 | ></TR
|
---|
1855 | ><TR
|
---|
1856 | ><TD
|
---|
1857 | ALIGN="LEFT"
|
---|
1858 | VALIGN="MIDDLE"
|
---|
1859 | >2</TD
|
---|
1860 | ><TD
|
---|
1861 | ALIGN="LEFT"
|
---|
1862 | VALIGN="MIDDLE"
|
---|
1863 | ><A
|
---|
1864 | HREF="function.strtolower.html"
|
---|
1865 | ><B
|
---|
1866 | CLASS="function"
|
---|
1867 | >strtolower()</B
|
---|
1868 | ></A
|
---|
1869 | ></TD
|
---|
1870 | ><TD
|
---|
1871 | ALIGN="LEFT"
|
---|
1872 | VALIGN="MIDDLE"
|
---|
1873 | ><A
|
---|
1874 | HREF="function.mb-strtolower.html"
|
---|
1875 | ><B
|
---|
1876 | CLASS="function"
|
---|
1877 | >mb_strtolower()</B
|
---|
1878 | ></A
|
---|
1879 | ></TD
|
---|
1880 | ></TR
|
---|
1881 | ><TR
|
---|
1882 | ><TD
|
---|
1883 | ALIGN="LEFT"
|
---|
1884 | VALIGN="MIDDLE"
|
---|
1885 | >2</TD
|
---|
1886 | ><TD
|
---|
1887 | ALIGN="LEFT"
|
---|
1888 | VALIGN="MIDDLE"
|
---|
1889 | ><A
|
---|
1890 | HREF="function.strtoupper.html"
|
---|
1891 | ><B
|
---|
1892 | CLASS="function"
|
---|
1893 | >strtoupper()</B
|
---|
1894 | ></A
|
---|
1895 | ></TD
|
---|
1896 | ><TD
|
---|
1897 | ALIGN="LEFT"
|
---|
1898 | VALIGN="MIDDLE"
|
---|
1899 | ><A
|
---|
1900 | HREF="function.mb-strtoupper.html"
|
---|
1901 | ><B
|
---|
1902 | CLASS="function"
|
---|
1903 | >mb_strtoupper()</B
|
---|
1904 | ></A
|
---|
1905 | ></TD
|
---|
1906 | ></TR
|
---|
1907 | ><TR
|
---|
1908 | ><TD
|
---|
1909 | ALIGN="LEFT"
|
---|
1910 | VALIGN="MIDDLE"
|
---|
1911 | >2</TD
|
---|
1912 | ><TD
|
---|
1913 | ALIGN="LEFT"
|
---|
1914 | VALIGN="MIDDLE"
|
---|
1915 | ><A
|
---|
1916 | HREF="function.substr-count.html"
|
---|
1917 | ><B
|
---|
1918 | CLASS="function"
|
---|
1919 | >substr_count()</B
|
---|
1920 | ></A
|
---|
1921 | ></TD
|
---|
1922 | ><TD
|
---|
1923 | ALIGN="LEFT"
|
---|
1924 | VALIGN="MIDDLE"
|
---|
1925 | ><A
|
---|
1926 | HREF="function.mb-substr-count.html"
|
---|
1927 | ><B
|
---|
1928 | CLASS="function"
|
---|
1929 | >mb_substr_count()</B
|
---|
1930 | ></A
|
---|
1931 | ></TD
|
---|
1932 | ></TR
|
---|
1933 | ><TR
|
---|
1934 | ><TD
|
---|
1935 | ALIGN="LEFT"
|
---|
1936 | VALIGN="MIDDLE"
|
---|
1937 | >4</TD
|
---|
1938 | ><TD
|
---|
1939 | ALIGN="LEFT"
|
---|
1940 | VALIGN="MIDDLE"
|
---|
1941 | ><A
|
---|
1942 | HREF="function.ereg.html"
|
---|
1943 | ><B
|
---|
1944 | CLASS="function"
|
---|
1945 | >ereg()</B
|
---|
1946 | ></A
|
---|
1947 | ></TD
|
---|
1948 | ><TD
|
---|
1949 | ALIGN="LEFT"
|
---|
1950 | VALIGN="MIDDLE"
|
---|
1951 | ><A
|
---|
1952 | HREF="function.mb-ereg.html"
|
---|
1953 | ><B
|
---|
1954 | CLASS="function"
|
---|
1955 | >mb_ereg()</B
|
---|
1956 | ></A
|
---|
1957 | ></TD
|
---|
1958 | ></TR
|
---|
1959 | ><TR
|
---|
1960 | ><TD
|
---|
1961 | ALIGN="LEFT"
|
---|
1962 | VALIGN="MIDDLE"
|
---|
1963 | >4</TD
|
---|
1964 | ><TD
|
---|
1965 | ALIGN="LEFT"
|
---|
1966 | VALIGN="MIDDLE"
|
---|
1967 | ><A
|
---|
1968 | HREF="function.eregi.html"
|
---|
1969 | ><B
|
---|
1970 | CLASS="function"
|
---|
1971 | >eregi()</B
|
---|
1972 | ></A
|
---|
1973 | ></TD
|
---|
1974 | ><TD
|
---|
1975 | ALIGN="LEFT"
|
---|
1976 | VALIGN="MIDDLE"
|
---|
1977 | ><A
|
---|
1978 | HREF="function.mb-eregi.html"
|
---|
1979 | ><B
|
---|
1980 | CLASS="function"
|
---|
1981 | >mb_eregi()</B
|
---|
1982 | ></A
|
---|
1983 | ></TD
|
---|
1984 | ></TR
|
---|
1985 | ><TR
|
---|
1986 | ><TD
|
---|
1987 | ALIGN="LEFT"
|
---|
1988 | VALIGN="MIDDLE"
|
---|
1989 | >4</TD
|
---|
1990 | ><TD
|
---|
1991 | ALIGN="LEFT"
|
---|
1992 | VALIGN="MIDDLE"
|
---|
1993 | ><A
|
---|
1994 | HREF="function.ereg-replace.html"
|
---|
1995 | ><B
|
---|
1996 | CLASS="function"
|
---|
1997 | >ereg_replace()</B
|
---|
1998 | ></A
|
---|
1999 | ></TD
|
---|
2000 | ><TD
|
---|
2001 | ALIGN="LEFT"
|
---|
2002 | VALIGN="MIDDLE"
|
---|
2003 | ><A
|
---|
2004 | HREF="function.mb-ereg-replace.html"
|
---|
2005 | ><B
|
---|
2006 | CLASS="function"
|
---|
2007 | >mb_ereg_replace()</B
|
---|
2008 | ></A
|
---|
2009 | ></TD
|
---|
2010 | ></TR
|
---|
2011 | ><TR
|
---|
2012 | ><TD
|
---|
2013 | ALIGN="LEFT"
|
---|
2014 | VALIGN="MIDDLE"
|
---|
2015 | >4</TD
|
---|
2016 | ><TD
|
---|
2017 | ALIGN="LEFT"
|
---|
2018 | VALIGN="MIDDLE"
|
---|
2019 | ><A
|
---|
2020 | HREF="function.eregi-replace.html"
|
---|
2021 | ><B
|
---|
2022 | CLASS="function"
|
---|
2023 | >eregi_replace()</B
|
---|
2024 | ></A
|
---|
2025 | ></TD
|
---|
2026 | ><TD
|
---|
2027 | ALIGN="LEFT"
|
---|
2028 | VALIGN="MIDDLE"
|
---|
2029 | ><A
|
---|
2030 | HREF="function.mb-eregi-replace.html"
|
---|
2031 | ><B
|
---|
2032 | CLASS="function"
|
---|
2033 | >mb_eregi_replace()</B
|
---|
2034 | ></A
|
---|
2035 | ></TD
|
---|
2036 | ></TR
|
---|
2037 | ><TR
|
---|
2038 | ><TD
|
---|
2039 | ALIGN="LEFT"
|
---|
2040 | VALIGN="MIDDLE"
|
---|
2041 | >4</TD
|
---|
2042 | ><TD
|
---|
2043 | ALIGN="LEFT"
|
---|
2044 | VALIGN="MIDDLE"
|
---|
2045 | ><A
|
---|
2046 | HREF="function.split.html"
|
---|
2047 | ><B
|
---|
2048 | CLASS="function"
|
---|
2049 | >split()</B
|
---|
2050 | ></A
|
---|
2051 | ></TD
|
---|
2052 | ><TD
|
---|
2053 | ALIGN="LEFT"
|
---|
2054 | VALIGN="MIDDLE"
|
---|
2055 | ><A
|
---|
2056 | HREF="function.mb-split.html"
|
---|
2057 | ><B
|
---|
2058 | CLASS="function"
|
---|
2059 | >mb_split()</B
|
---|
2060 | ></A
|
---|
2061 | ></TD
|
---|
2062 | ></TR
|
---|
2063 | ></TBODY
|
---|
2064 | ></TABLE
|
---|
2065 | ></DIV
|
---|
2066 | >
|
---|
2067 | </P
|
---|
2068 | ></DIV
|
---|
2069 | ><DIV
|
---|
2070 | CLASS="section"
|
---|
2071 | ><H1
|
---|
2072 | CLASS="section"
|
---|
2073 | ><A
|
---|
2074 | NAME="mbstring.ja-basic"
|
---|
2075 | ></A
|
---|
2076 | >Basics of Japanese multi-byte characters</H1
|
---|
2077 | ><P
|
---|
2078 | > Most Japanese characters need more than 1 byte per character. In
|
---|
2079 | addition, several character encoding schemas are used under a
|
---|
2080 | Japanese environment. There are EUC-JP, Shift_JIS(SJIS) and
|
---|
2081 | ISO-2022-JP(JIS) character encoding. As Unicode becomes popular,
|
---|
2082 | UTF-8 is used also. To develop Web applications for a Japanese
|
---|
2083 | environment, it is important to use the character set for the
|
---|
2084 | task in hand, whether HTTP input/output, RDBMS and E-mail.
|
---|
2085 | </P
|
---|
2086 | ><P
|
---|
2087 | > <P
|
---|
2088 | ></P
|
---|
2089 | ><UL
|
---|
2090 | ><LI
|
---|
2091 | ><P
|
---|
2092 | >Storage for a character can be up to six
|
---|
2093 | bytes</P
|
---|
2094 | ></LI
|
---|
2095 | ><LI
|
---|
2096 | ><P
|
---|
2097 | > A multi-byte character is usually twice of the width compared
|
---|
2098 | to single-byte characters. Wider characters are called
|
---|
2099 | "zen-kaku" - meaning full width, narrower characters are
|
---|
2100 | called "han-kaku" - meaning half width. "zen-kaku" characters
|
---|
2101 | are usually fixed width.
|
---|
2102 | </P
|
---|
2103 | ></LI
|
---|
2104 | ><LI
|
---|
2105 | ><P
|
---|
2106 | > Some character encoding defines shift(escape) sequence for
|
---|
2107 | entering/exiting multi-byte character strings.
|
---|
2108 | </P
|
---|
2109 | ></LI
|
---|
2110 | ><LI
|
---|
2111 | ><P
|
---|
2112 | > ISO-2022-JP must be used for SMTP/NNTP.
|
---|
2113 | </P
|
---|
2114 | ></LI
|
---|
2115 | ><LI
|
---|
2116 | ><P
|
---|
2117 | > "i-mode" web site is supposed to use SJIS.
|
---|
2118 | </P
|
---|
2119 | ></LI
|
---|
2120 | ></UL
|
---|
2121 | >
|
---|
2122 | </P
|
---|
2123 | ></DIV
|
---|
2124 | ><DIV
|
---|
2125 | CLASS="section"
|
---|
2126 | ><H1
|
---|
2127 | CLASS="section"
|
---|
2128 | ><A
|
---|
2129 | NAME="mbstring.ref"
|
---|
2130 | ></A
|
---|
2131 | >References</H1
|
---|
2132 | ><P
|
---|
2133 | > Multi-byte character encoding and its related issues are very
|
---|
2134 | complex. It is impossible to cover in sufficient detail
|
---|
2135 | here. Please refer to the following URLs and other resources for
|
---|
2136 | further readings.
|
---|
2137 | <P
|
---|
2138 | ></P
|
---|
2139 | ><UL
|
---|
2140 | ><LI
|
---|
2141 | ><P
|
---|
2142 | > Unicode/UTF/UCS/etc
|
---|
2143 | </P
|
---|
2144 | ><P
|
---|
2145 | > <TT
|
---|
2146 | CLASS="literal"
|
---|
2147 | >http://www.unicode.org/</TT
|
---|
2148 | >
|
---|
2149 | </P
|
---|
2150 | ></LI
|
---|
2151 | ><LI
|
---|
2152 | ><P
|
---|
2153 | > Japanese/Korean/Chinese character
|
---|
2154 | information
|
---|
2155 | </P
|
---|
2156 | ><P
|
---|
2157 | > <TT
|
---|
2158 | CLASS="literal"
|
---|
2159 | > ftp://ftp.ora.com/pub/examples/nutshell/ujip/doc/cjk.inf
|
---|
2160 | </TT
|
---|
2161 | >
|
---|
2162 | </P
|
---|
2163 | ></LI
|
---|
2164 | ></UL
|
---|
2165 | >
|
---|
2166 | </P
|
---|
2167 | ></DIV
|
---|
2168 | ></DIV
|
---|
2169 | ><DIV
|
---|
2170 | CLASS="TOC"
|
---|
2171 | ><DL
|
---|
2172 | ><DT
|
---|
2173 | ><B
|
---|
2174 | >Obsah</B
|
---|
2175 | ></DT
|
---|
2176 | ><DT
|
---|
2177 | ><A
|
---|
2178 | HREF="function.mb-convert-case.html"
|
---|
2179 | >mb_convert_case</A
|
---|
2180 | > -- Perform case folding on a string</DT
|
---|
2181 | ><DT
|
---|
2182 | ><A
|
---|
2183 | HREF="function.mb-convert-encoding.html"
|
---|
2184 | >mb_convert_encoding</A
|
---|
2185 | > -- Convert character encoding</DT
|
---|
2186 | ><DT
|
---|
2187 | ><A
|
---|
2188 | HREF="function.mb-convert-kana.html"
|
---|
2189 | >mb_convert_kana</A
|
---|
2190 | > --
|
---|
2191 | Convert "kana" one from another ("zen-kaku" ,"han-kaku" and more)
|
---|
2192 | </DT
|
---|
2193 | ><DT
|
---|
2194 | ><A
|
---|
2195 | HREF="function.mb-convert-variables.html"
|
---|
2196 | >mb_convert_variables</A
|
---|
2197 | > -- Convert character code in variable(s)</DT
|
---|
2198 | ><DT
|
---|
2199 | ><A
|
---|
2200 | HREF="function.mb-decode-mimeheader.html"
|
---|
2201 | >mb_decode_mimeheader</A
|
---|
2202 | > -- Decode string in MIME header field</DT
|
---|
2203 | ><DT
|
---|
2204 | ><A
|
---|
2205 | HREF="function.mb-decode-numericentity.html"
|
---|
2206 | >mb_decode_numericentity</A
|
---|
2207 | > --
|
---|
2208 | Decode HTML numeric string reference to character
|
---|
2209 | </DT
|
---|
2210 | ><DT
|
---|
2211 | ><A
|
---|
2212 | HREF="function.mb-detect-encoding.html"
|
---|
2213 | >mb_detect_encoding</A
|
---|
2214 | > -- Detect character encoding</DT
|
---|
2215 | ><DT
|
---|
2216 | ><A
|
---|
2217 | HREF="function.mb-detect-order.html"
|
---|
2218 | >mb_detect_order</A
|
---|
2219 | > --
|
---|
2220 | Set/Get character encoding detection order
|
---|
2221 | </DT
|
---|
2222 | ><DT
|
---|
2223 | ><A
|
---|
2224 | HREF="function.mb-encode-mimeheader.html"
|
---|
2225 | >mb_encode_mimeheader</A
|
---|
2226 | > -- Encode string for MIME header</DT
|
---|
2227 | ><DT
|
---|
2228 | ><A
|
---|
2229 | HREF="function.mb-encode-numericentity.html"
|
---|
2230 | >mb_encode_numericentity</A
|
---|
2231 | > --
|
---|
2232 | Encode character to HTML numeric string reference
|
---|
2233 | </DT
|
---|
2234 | ><DT
|
---|
2235 | ><A
|
---|
2236 | HREF="function.mb-ereg-match.html"
|
---|
2237 | >mb_ereg_match</A
|
---|
2238 | > --
|
---|
2239 | Regular expression match for multibyte string
|
---|
2240 | </DT
|
---|
2241 | ><DT
|
---|
2242 | ><A
|
---|
2243 | HREF="function.mb-ereg-replace.html"
|
---|
2244 | >mb_ereg_replace</A
|
---|
2245 | > -- Replace regular expression with multibyte support</DT
|
---|
2246 | ><DT
|
---|
2247 | ><A
|
---|
2248 | HREF="function.mb-ereg-search-getpos.html"
|
---|
2249 | >mb_ereg_search_getpos</A
|
---|
2250 | > --
|
---|
2251 | Returns start point for next regular expression match
|
---|
2252 | </DT
|
---|
2253 | ><DT
|
---|
2254 | ><A
|
---|
2255 | HREF="function.mb-ereg-search-getregs.html"
|
---|
2256 | >mb_ereg_search_getregs</A
|
---|
2257 | > --
|
---|
2258 | Retrive the result from the last multibyte regular expression
|
---|
2259 | match
|
---|
2260 | </DT
|
---|
2261 | ><DT
|
---|
2262 | ><A
|
---|
2263 | HREF="function.mb-ereg-search-init.html"
|
---|
2264 | >mb_ereg_search_init</A
|
---|
2265 | > --
|
---|
2266 | Setup string and regular expression for multibyte regular
|
---|
2267 | expression match
|
---|
2268 | </DT
|
---|
2269 | ><DT
|
---|
2270 | ><A
|
---|
2271 | HREF="function.mb-ereg-search-pos.html"
|
---|
2272 | >mb_ereg_search_pos</A
|
---|
2273 | > --
|
---|
2274 | Return position and length of matched part of multibyte regular
|
---|
2275 | expression for predefined multibyte string
|
---|
2276 | </DT
|
---|
2277 | ><DT
|
---|
2278 | ><A
|
---|
2279 | HREF="function.mb-ereg-search-regs.html"
|
---|
2280 | >mb_ereg_search_regs</A
|
---|
2281 | > --
|
---|
2282 | Returns the matched part of multibyte regular expression
|
---|
2283 | </DT
|
---|
2284 | ><DT
|
---|
2285 | ><A
|
---|
2286 | HREF="function.mb-ereg-search-setpos.html"
|
---|
2287 | >mb_ereg_search_setpos</A
|
---|
2288 | > --
|
---|
2289 | Set start point of next regular expression match
|
---|
2290 | </DT
|
---|
2291 | ><DT
|
---|
2292 | ><A
|
---|
2293 | HREF="function.mb-ereg-search.html"
|
---|
2294 | >mb_ereg_search</A
|
---|
2295 | > --
|
---|
2296 | Multibyte regular expression match for predefined multibyte string
|
---|
2297 | </DT
|
---|
2298 | ><DT
|
---|
2299 | ><A
|
---|
2300 | HREF="function.mb-ereg.html"
|
---|
2301 | >mb_ereg</A
|
---|
2302 | > -- Regular expression match with multibyte support</DT
|
---|
2303 | ><DT
|
---|
2304 | ><A
|
---|
2305 | HREF="function.mb-eregi-replace.html"
|
---|
2306 | >mb_eregi_replace</A
|
---|
2307 | > --
|
---|
2308 | Replace regular expression with multibyte support
|
---|
2309 | ignoring case
|
---|
2310 | </DT
|
---|
2311 | ><DT
|
---|
2312 | ><A
|
---|
2313 | HREF="function.mb-eregi.html"
|
---|
2314 | >mb_eregi</A
|
---|
2315 | > --
|
---|
2316 | Regular expression match ignoring case with multibyte support
|
---|
2317 | </DT
|
---|
2318 | ><DT
|
---|
2319 | ><A
|
---|
2320 | HREF="function.mb-get-info.html"
|
---|
2321 | >mb_get_info</A
|
---|
2322 | > -- Get internal settings of mbstring</DT
|
---|
2323 | ><DT
|
---|
2324 | ><A
|
---|
2325 | HREF="function.mb-http-input.html"
|
---|
2326 | >mb_http_input</A
|
---|
2327 | > -- Detect HTTP input character encoding</DT
|
---|
2328 | ><DT
|
---|
2329 | ><A
|
---|
2330 | HREF="function.mb-http-output.html"
|
---|
2331 | >mb_http_output</A
|
---|
2332 | > -- Set/Get HTTP output character encoding</DT
|
---|
2333 | ><DT
|
---|
2334 | ><A
|
---|
2335 | HREF="function.mb-internal-encoding.html"
|
---|
2336 | >mb_internal_encoding</A
|
---|
2337 | > --
|
---|
2338 | Set/Get internal character encoding
|
---|
2339 | </DT
|
---|
2340 | ><DT
|
---|
2341 | ><A
|
---|
2342 | HREF="function.mb-language.html"
|
---|
2343 | >mb_language</A
|
---|
2344 | > --
|
---|
2345 | Set/Get current language
|
---|
2346 | </DT
|
---|
2347 | ><DT
|
---|
2348 | ><A
|
---|
2349 | HREF="function.mb-output-handler.html"
|
---|
2350 | >mb_output_handler</A
|
---|
2351 | > --
|
---|
2352 | Callback function converts character encoding in output buffer
|
---|
2353 | </DT
|
---|
2354 | ><DT
|
---|
2355 | ><A
|
---|
2356 | HREF="function.mb-parse-str.html"
|
---|
2357 | >mb_parse_str</A
|
---|
2358 | > --
|
---|
2359 | Parse GET/POST/COOKIE data and set global variable
|
---|
2360 | </DT
|
---|
2361 | ><DT
|
---|
2362 | ><A
|
---|
2363 | HREF="function.mb-preferred-mime-name.html"
|
---|
2364 | >mb_preferred_mime_name</A
|
---|
2365 | > -- Get MIME charset string</DT
|
---|
2366 | ><DT
|
---|
2367 | ><A
|
---|
2368 | HREF="function.mb-regex-encoding.html"
|
---|
2369 | >mb_regex_encoding</A
|
---|
2370 | > --
|
---|
2371 | Returns current encoding for multibyte regex as string
|
---|
2372 | </DT
|
---|
2373 | ><DT
|
---|
2374 | ><A
|
---|
2375 | HREF="function.mb-regex-set-options.html"
|
---|
2376 | >mb_regex_set_options</A
|
---|
2377 | > --
|
---|
2378 | Set/Get the default options for mbregex functions
|
---|
2379 | </DT
|
---|
2380 | ><DT
|
---|
2381 | ><A
|
---|
2382 | HREF="function.mb-send-mail.html"
|
---|
2383 | >mb_send_mail</A
|
---|
2384 | > --
|
---|
2385 | Send encoded mail.
|
---|
2386 | </DT
|
---|
2387 | ><DT
|
---|
2388 | ><A
|
---|
2389 | HREF="function.mb-split.html"
|
---|
2390 | >mb_split</A
|
---|
2391 | > -- Split multibyte string using regular expression</DT
|
---|
2392 | ><DT
|
---|
2393 | ><A
|
---|
2394 | HREF="function.mb-strcut.html"
|
---|
2395 | >mb_strcut</A
|
---|
2396 | > -- Get part of string</DT
|
---|
2397 | ><DT
|
---|
2398 | ><A
|
---|
2399 | HREF="function.mb-strimwidth.html"
|
---|
2400 | >mb_strimwidth</A
|
---|
2401 | > -- Get truncated string with specified width</DT
|
---|
2402 | ><DT
|
---|
2403 | ><A
|
---|
2404 | HREF="function.mb-strlen.html"
|
---|
2405 | >mb_strlen</A
|
---|
2406 | > -- Get string length</DT
|
---|
2407 | ><DT
|
---|
2408 | ><A
|
---|
2409 | HREF="function.mb-strpos.html"
|
---|
2410 | >mb_strpos</A
|
---|
2411 | > --
|
---|
2412 | Find position of first occurrence of string in a string
|
---|
2413 | </DT
|
---|
2414 | ><DT
|
---|
2415 | ><A
|
---|
2416 | HREF="function.mb-strrpos.html"
|
---|
2417 | >mb_strrpos</A
|
---|
2418 | > --
|
---|
2419 | Find position of last occurrence of a string in a string
|
---|
2420 | </DT
|
---|
2421 | ><DT
|
---|
2422 | ><A
|
---|
2423 | HREF="function.mb-strtolower.html"
|
---|
2424 | >mb_strtolower</A
|
---|
2425 | > -- Make a string lowercase</DT
|
---|
2426 | ><DT
|
---|
2427 | ><A
|
---|
2428 | HREF="function.mb-strtoupper.html"
|
---|
2429 | >mb_strtoupper</A
|
---|
2430 | > -- Make a string uppercase</DT
|
---|
2431 | ><DT
|
---|
2432 | ><A
|
---|
2433 | HREF="function.mb-strwidth.html"
|
---|
2434 | >mb_strwidth</A
|
---|
2435 | > -- Return width of string</DT
|
---|
2436 | ><DT
|
---|
2437 | ><A
|
---|
2438 | HREF="function.mb-substitute-character.html"
|
---|
2439 | >mb_substitute_character</A
|
---|
2440 | > -- Set/Get substitution character</DT
|
---|
2441 | ><DT
|
---|
2442 | ><A
|
---|
2443 | HREF="function.mb-substr-count.html"
|
---|
2444 | >mb_substr_count</A
|
---|
2445 | > -- Count the number of substring occurrences</DT
|
---|
2446 | ><DT
|
---|
2447 | ><A
|
---|
2448 | HREF="function.mb-substr.html"
|
---|
2449 | >mb_substr</A
|
---|
2450 | > -- Get part of string</DT
|
---|
2451 | ></DL
|
---|
2452 | ></DIV
|
---|
2453 | ></DIV
|
---|
2454 | ></DIV
|
---|
2455 | ><DIV
|
---|
2456 | CLASS="NAVFOOTER"
|
---|
2457 | ><HR
|
---|
2458 | ALIGN="LEFT"
|
---|
2459 | WIDTH="100%"><TABLE
|
---|
2460 | SUMMARY="Footer navigation table"
|
---|
2461 | WIDTH="100%"
|
---|
2462 | BORDER="0"
|
---|
2463 | CELLPADDING="0"
|
---|
2464 | CELLSPACING="0"
|
---|
2465 | ><TR
|
---|
2466 | ><TD
|
---|
2467 | WIDTH="33%"
|
---|
2468 | ALIGN="left"
|
---|
2469 | VALIGN="top"
|
---|
2470 | ><A
|
---|
2471 | HREF="function.tanh.html"
|
---|
2472 | ACCESSKEY="P"
|
---|
2473 | >Pøedcházející</A
|
---|
2474 | ></TD
|
---|
2475 | ><TD
|
---|
2476 | WIDTH="34%"
|
---|
2477 | ALIGN="center"
|
---|
2478 | VALIGN="top"
|
---|
2479 | ><A
|
---|
2480 | HREF="index.html"
|
---|
2481 | ACCESSKEY="H"
|
---|
2482 | >Domù</A
|
---|
2483 | ></TD
|
---|
2484 | ><TD
|
---|
2485 | WIDTH="33%"
|
---|
2486 | ALIGN="right"
|
---|
2487 | VALIGN="top"
|
---|
2488 | ><A
|
---|
2489 | HREF="function.mb-convert-case.html"
|
---|
2490 | ACCESSKEY="N"
|
---|
2491 | >Dal¹í</A
|
---|
2492 | ></TD
|
---|
2493 | ></TR
|
---|
2494 | ><TR
|
---|
2495 | ><TD
|
---|
2496 | WIDTH="33%"
|
---|
2497 | ALIGN="left"
|
---|
2498 | VALIGN="top"
|
---|
2499 | >tanh</TD
|
---|
2500 | ><TD
|
---|
2501 | WIDTH="34%"
|
---|
2502 | ALIGN="center"
|
---|
2503 | VALIGN="top"
|
---|
2504 | ><A
|
---|
2505 | HREF="funcref.html"
|
---|
2506 | ACCESSKEY="U"
|
---|
2507 | >Nahoru</A
|
---|
2508 | ></TD
|
---|
2509 | ><TD
|
---|
2510 | WIDTH="33%"
|
---|
2511 | ALIGN="right"
|
---|
2512 | VALIGN="top"
|
---|
2513 | >mb_convert_case</TD
|
---|
2514 | ></TR
|
---|
2515 | ></TABLE
|
---|
2516 | ></DIV
|
---|
2517 | ></BODY
|
---|
2518 | ></HTML
|
---|
2519 | >
|
---|