Search Results
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.
Apr 12, 2023 · Additional variables are to be converted, and separated by commas. Return values: If the conversion is successful, it will return "true" otherwise it will return "false".
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.
mb_convert_variables Supported Versions: PHP 4 >= 4.0.6, PHP 5, PHP 7, PHP 8 Convert character code in variable (s)
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.
vars is the reference to the variable being converted. String, Array and Object are accepted. mb_convert_variables () assumes all parameters have the same encoding.
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.
