function _referral_asc2hex in User Referral 5
Same name and namespace in other branches
- 6 referral.module \_referral_asc2hex()
- 7 referral.module \_referral_asc2hex()
1 call to _referral_asc2hex()
File
- ./
referral.module, line 557
Code
function _referral_asc2hex($asc_str) {
for ($i = 0; $i < strlen($asc_str); $i++) {
$hex_str .= sprintf("%02x", ord(substr($asc_str, $i, 1)));
}
return $hex_str;
}