|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2013-02-27 04:41 UTC] frozenfire@php.net
[2013-02-27 04:41 UTC] frozenfire@php.net
-Status: Open
+Status: Not a bug
|
|||||||||||||||||||||||||||
Copyright © 2001-2026 The PHP GroupAll rights reserved. |
Last updated: Thu Oct 08 03:00:02 2026 UTC |
Description: ------------ The documentation on the pack() function could be a little clearer. I needed a function that would receive a hex string and output binary for creating an image. The first time I read the documentation page, I had no idea this is the answer I was looking for, and eventually found it in someone else's code. Here's the code I have that returns the output I needed. $GIF = "CCFFCC009900...." (etc) $output = pack("H".strlen($GIF),$GIF);