mb_convert_variables
Convert character code in variable(s)
&reftitle.description;
stringmb_convert_variables
stringto_encoding
mixedfrom_encoding
mixedvars
mixed...
mb_convert_variables convert
character encoding of variables vars in
encoding from_encoding to encoding
to_encoding. It returns character encoding
before conversion for success, &false; for failure.
mb_convert_variables join strings in Array
or Object to detect encoding, since encoding detection tends to
fail for short strings. Therefore, it is impossible to mix
encoding in single array or object.
It from_encoding is specified by
array or comma separated string, it tries to detect encoding from
from-coding. When
encoding is omitted,
detect_order is used.
vars (3rd and larger) is reference to
variable to be converted. String, Array and Object are accepted.
mb_convert_variables assumes all parameters
have the same encoding.
mb_convert_variables example
]]>