|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2000-05-13 11:28 UTC] sterling at cvs dot php dot net
[2000-05-14 12:47 UTC] sterling at cvs dot php dot net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Wed Nov 19 12:00:02 2025 UTC |
<?php print pack("H4", "4142"); // this prints "AB" ?> So I do <?php $foo = unpack("H4", "AB"); ?> But, it appeared that <b>Fatal error</b>: pack type H: not enough input, need 4, have 2 in <b>-</b> on line <b>2</b><br> I can this by using bin2hex function to do this. But Perl works without error, is this right unpack() behavior? Thank you. Akihiro SAGAWA