$keyLength) { $j = 0; } $ascii = ord($source[$i]) ^ ord($key[$j]); $result .= chr($ascii); } return $result; } }