note 83059 added to function.pack

From: Date: Thu, 08 May 2008 14:26:17 +0000
Subject: note 83059 added to function.pack
Groups: php.notes 
Request: Send a blank email to php-notes+get-139178@lists.php.net to get a copy of this message
Be aware of format code H always padding the 0 for byte-alignment to the right (for odd count of nibbles). So pack("H", "7") results in 0x70 (ASCII character 'p') and not in 0x07 (BELL character) as well as pack("H*", "347") results in 0x34 ('4') and 0x70 ('p') and not 0x03 and 0x47. ---- Server IP: 217.160.72.57 Probable Submitter: 84.56.146.152 ---- Manual Page -- http://www.php.net/manual/en/function.pack.php Edit -- https://master.php.net/note/edit/83059 Del: integrated -- https://master.php.net/note/delete/83059/integrated Del: useless -- https://master.php.net/note/delete/83059/useless Del: bad code -- https://master.php.net/note/delete/83059/bad+code Del: spam -- https://master.php.net/note/delete/83059/spam Del: non-english -- https://master.php.net/note/delete/83059/non-english Del: in docs -- https://master.php.net/note/delete/83059/in+docs Del: other reasons-- https://master.php.net/note/delete/83059 Reject -- https://master.php.net/note/reject/83059 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#139178) next »