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