Page 1 of 1
please convert this vb function to php function
Posted: Thu Dec 12, 2013 7:33 am
by habibo370
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
Re: please convert this vb function to php function
Posted: Thu Dec 12, 2013 1:15 pm
by requinix
please convert this vb function to php function
Posted: Fri Dec 13, 2013 1:13 am
by CoursesWeb
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
Re: please convert this vb function to php function
Posted: Tue Dec 17, 2013 4:32 pm
by habibo370
thanks dechex work!!!
Re: please convert this vb function to php function
Posted: Sat Dec 21, 2013 4:46 pm
by Eric!
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
Posted: Sat Dec 21, 2013 7:15 pm
by requinix
Lemme guess: CSI NY and the gooey? Yeah, I really wanted to remember that...
