LinuxNoobPhilip
Technical User
Hi, I am trying to take a number format it as a 32 bit(4 byte) unsigned integer, then append it to a string.
the string I want is the follow "#0001", where the integer was 12. does this make sense? so this is what I thought I should do it
$string = "#";
$int = pack('L',1)
$string.= unpack('L',$int)
Ouput: "#1
the string I want is the follow "#0001", where the integer was 12. does this make sense? so this is what I thought I should do it
$string = "#";
$int = pack('L',1)
$string.= unpack('L',$int)
Ouput: "#1