Quote Originally Posted by Lock Down View Post
Ok here you go.
PHP Code: 
<?php
$all 
'RM50';
// single
$r 'R';
$m 'M';
$a '5';
$b '0';
$s=strtoHex($all);var_dump($s);
// single
$s=strtoHex($r);var_dump($s);
$s=strtoHex($m);var_dump($s);
$s=strtoHex($a);var_dump($s);
$s=strtoHex($b);var_dump($s);
exit();
exit();

function 
strToHex($string)
{
    
$hex='';
    for (
$i=0$i strlen($string); $i++)
    {
        
$hex .= dechex(ord($string[$i]));
    }
    return 
$hex;
}
?>
damn that's legit....i was l00king for this too.. thanks
M0neyMan Reviewed by M0neyMan on . encode PHP Hi KWWH friends, please i want to know to encode for example word "stream" to "\x73\x74r\x65\x61m" i know how to decode the line by htmlentities and that stuff but i don't know how to encode. thanks in advance Rating: 5