Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- function Hilangin($hex){
- // hapus /x dari hex
- $hex = str_replace('/x', '', $hex);
- return ($hex);
- }
- function Hexketext($x) {
- $s='';
- foreach(explode("\n",trim(chunk_split($x,2))) as $h) $s.=chr(hexdec($h));
- return($s);
- }
- function Textkehex($x) {
- $s='';
- foreach(str_split($x) as $c) $s.=sprintf("%02X",ord($c));
- return($s);
- }
- $hex = "47/x4c/x4f/x42/x41/x4c/x53";
- print Hexketext(Hilangin($hex)).'<br>';
- print Textkehex("GLOBALS")."\n";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement