Public Function DecToHexStr(ByVal inVal As Integer) As String
Dim s As String
s = Trim(Hex(inVal))
If Len(s) < 2 Then
s = "0" & s
End If
DecToHexStr = s
End Function
please convert this vb function to php function
Moderator: General Moderators
-
CoursesWeb
- Forum Newbie
- Posts: 18
- Joined: Mon Dec 09, 2013 10:52 am
please convert this vb function to php function
Hi
Not know VB, but according to the function name: DecToHexStr, if it converts decimal number to hexadecimal string, in php you can use the dechex() function: http://www.php.net/manual/en/function.dechex.php
Not know VB, but according to the function name: DecToHexStr, if it converts decimal number to hexadecimal string, in php you can use the dechex() function: http://www.php.net/manual/en/function.dechex.php
Re: please convert this vb function to php function
thanks dechex work!!!
Re: please convert this vb function to php function
I can't see "visual basic" without being reminded of the classic use tracing of IP with it. Warning, you can't un-see this.
Re: please convert this vb function to php function
Lemme guess: CSI NY and the gooey? Yeah, I really wanted to remember that...Eric! wrote:I can't see "visual basic" without being reminded of the classic use tracing of IP with it. Warning, you can't un-see this.