mb_substitute_character
mb_substitute_character
Set/Get substitution character
**mb_substitute_character** $substitute_character
Specifies a substitution character when input character encoding is invalid
or character code does not exist in output character
encoding. Invalid characters may be substituted (no output),
or value (Unicode character code value).
"none"``string``int
This setting affects ,
,
,
,
and .
mb_convert_encoding``mb_convert_variables``mb_output_handler``mb_scrub``mb_send_mail
substitute_character
Specify the Unicode value as an ,
or as one of the following s:
`int``string`- : no output `"none"`
-
: Output character code value (Example: , )
"long"``U+3000``JIS+7E7E -
: Output character entity (Example: )
"entity"``ȀIf is set, it returns true for success, otherwise returns false. If is not set, it returns the current setting.
substitute_character``substitute_characterVoorbeeld: example
<?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();
?>