Skip to content

Instantly share code, notes, and snippets.

@masakielastic
Created August 5, 2017 00:00
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save masakielastic/efbd7a9c8fc0937f5b9e2d2c048a9c6d to your computer and use it in GitHub Desktop.
Save masakielastic/efbd7a9c8fc0937f5b9e2d2c048a9c6d to your computer and use it in GitHub Desktop.
<?php
$a = chr(0xfa).chr(0x4a);
var_dump(
"fa4a" === bin2hex($a),
"8754" === bin2hex(mb_strtolower($a, "CP932")),
"8754" === bin2hex(mb_strtoupper($a, "CP932"))
);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment