please convert a this vb function to php function

PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!

Moderator: General Moderators

Locked
habibo370
Forum Newbie
Posts: 3
Joined: Thu Dec 12, 2013 7:27 am

please convert a this vb function to php function

Post by habibo370 »

plese convert this vb function to php function :)

Public Function UnHex(sHex As String) As Long
UnHex = Val("&H" & sHex)
End Function
User avatar
requinix
Spammer :|
Posts: 6617
Joined: Wed Oct 15, 2008 2:35 am
Location: WA, USA

Re: please convert a this vb function to php function

Post by requinix »

The answer to your previous question was "dechex" to convert from decimal to hexadecimal. Guess what the answer to this question is.
Locked