PDA

View Full Version : packing and inpacking problem


rag84dec
09-28-2007, 11:26 AM
Hi,
I want to get output as 0x23400000345....in the below example
how to get??..i tried out the following but unable to get the anser ....

please help...


$r=0x234;
$t=0x345;

$y=pack('L L',$t,$r);
$x1=unpack('L!',pack('P',$y));
printf("\nThe value is $x1");