A
Anonymous
Guest
Could someone please translate these lines of ASP to PHP for me ?
I appreciate that
Code:
Dim strInputeCode
Dim NumArr(8), i , x , d , otp
Dim j 'As Integer
strInputeCode = "12345678"
x = "&H" + strInputeCode
For i = 1 To 8
NumArr(i) = "&H" + Mid (strInputeCode, i, 1)
j = j + int ( NumArr(i) )
Next
d = x \ j
otp = Hex (d + (x * 12) )
I appreciate that