First of all thanks for your help. Though I used word encoded, float value is not encoded in file. 'A418BA42' is just hexadecimal representation of 32 bit binary data in hex editor. When I select that value in hex editors, it gives me different data types values.
Signed Byte -92
Unsigned Byte 164
Signed Short 6308
Unsigned Short 6308
Signed Long 1119492260
Unsigned Long 1119492260
Float 93.048126
Binary 10100100000110001011101001000010
If you are treating those four bytes as long or dwords then it is very easy to echo their values. My codes can echo int value '1119492260'. But what if I want to echo float value i.e 93.048126 ?
I know the answer is somewhere in pack/unpack functions, but my several attempts to do that are failed. Either they echo '0' or doesn't echo anything. Can you tell me how exactly I should code?