- str_split: documentation ( source)
- md5: documentation ( source)
<?php
function evalCrossTotal($strMD5)
{
$intTotal = 0;
$arrMD5Chars = str_split($strMD5, 1);
foreach ($arrMD5Chars as $value)
{
$intTotal += '0x0'.$value;
print $intTotal;
print "/n";
}
return $intTotal;
}
$test = evalCrossTotal(md5("something"));
print $test;