You are here

function _referral_asc2hex in User Referral 6

Same name and namespace in other branches
  1. 5 referral.module \_referral_asc2hex()
  2. 7 referral.module \_referral_asc2hex()
1 call to _referral_asc2hex()
_referral_hex_seed in ./referral.module

File

./referral.module, line 550

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;
}