Opens in a new tab
A picture of Jeff Brigman
I CODE TODAY FOR
A BETTER TOMORROW

Glossary Term

mb_convert_variables()

3 tags 1 category

mb_convert_variables() — Convert character code in variable(s).

mb_convert_variables() — Converts character encoding of variables var and vars in encoding from_encoding to encoding to_encoding.

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.

Inputs: to_encoding: The encoding that the string is being converted to. from_encoding: from_encoding is specified as an array or comma separated string, it tries to detect encoding from from-coding. When from_encoding is omitted, detect_order is used. var: var is the reference to the variable being converted. String, Array and Object are accepted. mb_convert_variables assumes all parameters have the same encoding. vars: Additional vars.

Returns: The character encoding before conversion for success, or false for failure.

Term Connections

Explore related terms connected by shared tags, shared categories, and relationship phrases. This map loads only when it comes into view.

Loading term connections…