- var_dump: documentation ( source)
- hex2bin: documentation ( source)
- bin2hex: documentation ( source)
- pack: documentation ( source)
- unpack: documentation ( source)
<?php
var_dump(
bin2hex(pack("LLZ*", 12345, 67890, "bark bark I am a chicken")),
unpack("Lone/Ltwo/Z*three", hex2bin("39300000320901006261726b206261726b204920616d206120636869636b656e00"))
);