<?php
var_dump(
$conv = mb_convert_encoding(
$bin = hex2bin("7e0a"),
"HZ",
"ASCII"
),
mb_check_encoding($bin, "ASCII"),
bin2hex(mb_convert_encoding($conv, "ASCII", "HZ"))
);
- Output for 7.4.0 - 7.4.33, 8.0.1 - 8.0.30, 8.2.0 - 8.2.17, 8.3.0 - 8.3.4
- string(3) "~~
"
bool(true)
string(4) "7e0a"
- Output for 8.1.0 - 8.1.27
- string(3) "~~
"
bool(true)
string(2) "7e"
preferences:
110.42 ms | 401 KiB | 117 Q