Sophie

Sophie

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

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

<HTML
><HEAD
><TITLE
>mb_substitute_character</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="Multi-Byte 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-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.mb-strwidth.html"
ACCESSKEY="P"
>Anterior</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"
>Siguiente</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="AEN37473"
></A
><P
>    (PHP 4 &#62;= 4.0.6)</P
>mb_substitute_character&nbsp;--&nbsp;Set/Get substitution character</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN37476"
></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-detect-encoding.html"
><B
CLASS="function"
>mb_detect_encoding()</B
></A
>
     and <A
HREF="function.mb-send-mail.html"
><B
CLASS="function"
>mb_send_mail()</B
></A
>.
    </P
><P
>&#13;     <TT
CLASS="parameter"
><I
>substchar</I
></TT
> : 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 <TT
CLASS="parameter"
><I
>substchar</I
></TT
> is set, it
     returns <TT
CLASS="constant"
><B
>TRUE</B
></TT
> for success, otherwise returns
     <TT
CLASS="constant"
><B
>FALSE</B
></TT
>. If <TT
CLASS="parameter"
><I
>substchar</I
></TT
> is
     not set, it returns Unicode value or
     "<TT
CLASS="literal"
>none</TT
>"/"<TT
CLASS="literal"
>long</TT
>".
    </P
><P
>&#13;     <TABLE
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
CLASS="EXAMPLE"
><TR
><TD
><DIV
CLASS="example"
><A
NAME="AEN37505"
></A
><P
><B
>Ejemplo 1. <B
CLASS="function"
>mb_substitute_character()</B
> example</B
></P
><TABLE
BORDER="0"
BGCOLOR="#E0E0E0"
CELLPADDING="5"
><TR
><TD
><PRE
CLASS="php"
>/* Set with Unicode U+3013 (GETA MARK) */
mb_substitute_character(0x3013);

/* Set hex format */
mb_substitute_character("long");

/* Display current setting */
echo mb_substitute_character();</PRE
></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"
>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.mb-substr-count.html"
ACCESSKEY="N"
>Siguiente</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"
>Subir</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>mb_substr_count</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>