@@ -5,10 +5,10 @@ |
||
| 5 | 5 | {
|
| 6 | 6 | public static function toStr($hex) |
| 7 | 7 | {
|
| 8 | - $str = ''; |
|
| 9 | - for($i=0; $i < strlen($hex); $i+=2) {
|
|
| 10 | - $str .= chr(hexdec(substr($hex,$i,2))); |
|
| 11 | - } |
|
| 12 | - return $str; |
|
| 8 | + $str = ''; |
|
| 9 | + for($i=0; $i < strlen($hex); $i+=2) {
|
|
| 10 | + $str .= chr(hexdec(substr($hex,$i,2))); |
|
| 11 | + } |
|
| 12 | + return $str; |
|
| 13 | 13 | } |
| 14 | 14 | } |
| 15 | 15 | \ No newline at end of file |
@@ -5,6 +5,6 @@ |
||
| 5 | 5 | {
|
| 6 | 6 | public static function toUtf8($str) |
| 7 | 7 | {
|
| 8 | - return utf8_encode($str); |
|
| 8 | + return utf8_encode($str); |
|
| 9 | 9 | } |
| 10 | 10 | } |
| 11 | 11 | \ No newline at end of file |
@@ -10,7 +10,7 @@ |
||
| 10 | 10 | */ |
| 11 | 11 | public static function toHex($bin) |
| 12 | 12 | {
|
| 13 | - return bin2hex($bin); |
|
| 13 | + return bin2hex($bin); |
|
| 14 | 14 | } |
| 15 | 15 | |
| 16 | 16 | /** |