Page 1 of 1

please convert a this vb function to php function

Posted: Tue Dec 17, 2013 4:35 pm
by habibo370
plese convert this vb function to php function :)

Public Function UnHex(sHex As String) As Long
UnHex = Val("&H" & sHex)
End Function

Re: please convert a this vb function to php function

Posted: Tue Dec 17, 2013 4:44 pm
by requinix
The answer to your previous question was "dechex" to convert from decimal to hexadecimal. Guess what the answer to this question is.