Sophie

Sophie

distrib > PLD > ac > amd64 > media > dist > by-pkgid > dd8ef74e7a184506d40e4328053fb785 > files > 1655

php-manual-ro-20051028-1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<HTML
><HEAD
><TITLE
>mb_substitute_character</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.7"><LINK
REL="HOME"
TITLE="Manual PHP"
HREF="index.html"><LINK
REL="UP"
TITLE="Multibyte String Functions"
HREF="ref.mbstring.html"><LINK
REL="PREVIOUS"
TITLE="mb_strwidth"
HREF="function.mb-strwidth.html"><LINK
REL="NEXT"
TITLE="mb_substr_count"
HREF="function.mb-substr-count.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=ISO-8859-2"></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 PHP</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.mb-strwidth.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.mb-substr-count.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.mb-substitute-character"
></A
>mb_substitute_character</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN53429"
></A
><P
>    (PHP 4 &#62;= 4.0.6, PHP 5)</P
>mb_substitute_character&nbsp;--&nbsp;Set/Get substitution character</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN53432"
></A
><H2
>Description</H2
>mixed <B
CLASS="methodname"
>mb_substitute_character</B
> ( [mixed substrchar])<BR
></BR
><P
>&#13;     <B
CLASS="function"
>mb_substitute_character()</B
> specifies
     substitution character when input character encoding is invalid
     or character code is not exist in output character
     encoding. Invalid characters may be substituted <TT
CLASS="constant"
><B
>NULL</B
></TT
>(no output),
     string or integer value (Unicode character code value).
    </P
><P
>&#13;     This setting affects <A
HREF="function.mb-convert-encoding.html"
><B
CLASS="function"
>mb_convert_encoding()</B
></A
>,
     <A
HREF="function.mb-convert-variables.html"
><B
CLASS="function"
>mb_convert_variables()</B
></A
>,
     <A
HREF="function.mb-output-handler.html"
><B
CLASS="function"
>mb_output_handler()</B
></A
>,
     and <A
HREF="function.mb-send-mail.html"
><B
CLASS="function"
>mb_send_mail()</B
></A
>.
    </P
><P
>&#13;     <VAR
CLASS="parameter"
>substchar</VAR
> : Specify Unicode value as
     integer or specify as string as follows
     <P
></P
><UL
><LI
><P
>&#13;        "none" : no output
       </P
></LI
><LI
><P
>&#13;        "long" : Output character code value (Example:
        U+3000,JIS+7E7E)
       </P
></LI
></UL
>
    </P
><P
>&#13;     Return Value: If <VAR
CLASS="parameter"
>substchar</VAR
> is set, it
     returns <TT
CLASS="constant"
><B
>TRUE</B
></TT
> for success, otherwise returns
     <TT
CLASS="constant"
><B
>FALSE</B
></TT
>. If <VAR
CLASS="parameter"
>substchar</VAR
> is
     not set, it returns Unicode value or
     "<VAR
CLASS="literal"
>none</VAR
>"/"<VAR
CLASS="literal"
>long</VAR
>".
    </P
><P
>&#13;     <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN53463"
></A
><P
><B
>Exemplu 1. <B
CLASS="function"
>mb_substitute_character()</B
> example</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><code><font color="#000000">
<font color="#0000BB">&lt;?php<br /></font><font color="#FF8000">/* Set with Unicode U+3013 (GETA MARK) */<br /></font><font color="#0000BB">mb_substitute_character</font><font color="#007700">(</font><font color="#0000BB">0x3013</font><font color="#007700">);<br /><br /></font><font color="#FF8000">/* Set hex format */<br /></font><font color="#0000BB">mb_substitute_character</font><font color="#007700">(</font><font color="#DD0000">"long"</font><font color="#007700">);<br /><br /></font><font color="#FF8000">/* Display current setting */<br /></font><font color="#007700">echo </font><font color="#0000BB">mb_substitute_character</font><font color="#007700">();<br /></font><font color="#0000BB">?&gt;</font>
</font>
</code></TD
></TR
></TABLE
></DIV
></TD
></TR
></TABLE
>
    </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.mb-strwidth.html"
ACCESSKEY="P"
>Înapoi</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>Acas&#227;</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.mb-substr-count.html"
ACCESSKEY="N"
>Înainte</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>mb_strwidth</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.mbstring.html"
ACCESSKEY="U"
>Sus</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>mb_substr_count</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>