← All docs
iconv_get_encoding()
Reports the configured input, output, or internal character encoding.
iconv_get_encoding()
function iconv_get_encoding(string $type = 'all'): mixed
Reports the configured input, output, or internal character encoding.
Parameters:
$type(string), default'all', optional
Returns: mixed
Availability
- Compiled (AOT): supported by the Elephc code generator.
eval()(magician interpreter): supported — declarative interpreter builtin (crates/elephc-magician/src/interpreter/builtins/string/iconv_get_encoding.rs).
No examples yet — check examples/ and showcases/ for usage patterns.
Internals
For how iconv_get_encoding is implemented in the compiler, see the internals page.