- bin2hex: documentation ( source)
- mb_convert_case: documentation ( source)
<?php
echo $str = 'YİY', "\n";
echo bin2hex($str), "\n";
echo $tmp = mb_convert_case($str, MB_CASE_LOWER, 'UTF-8'), "\n";
echo bin2hex($tmp), "\n";
echo $tmp = mb_convert_case($tmp, MB_CASE_UPPER, 'UTF-8'), "\n";
echo bin2hex($tmp);