i'm write a function for it and i came across a error I never had befor:
function trackerHash($infoHash)
{
$return = '';
$split = chunk_split($infoHash,2);
$split = explode("\n",$split);
array_shift($split);
array_shift($split);
array_pop($split);
$i = 1;
foreach($split as $value)
{
if($i == count($split)) $return .= $value;
else $return .= $value . "%";
//exit();
$i++;
}
return $return;
}
this is the function now i try to call it by doing this:
var_dump(trackerHash("0a32654838808aa26828dcdd526ad03ff7360382"));
output:
"82ing(71) "65
What is "82ing(71)" ????? and why dosen't it output it like
0a%32%65%48%38%80%8a%a2%68%28%dc%dd%52%6a%d0%3f%f7%36%03%82
I have tried printing the the array out and everything seams fine there... anyone have an ide ?