note 82146 added to function.unpack
| From: | AnonymousCoward at osu1 dot php dot net | Date: | Fri, 28 Mar 2008 18:52:48 +0000 |
| Subject: | note 82146 added to function.unpack | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-137686@lists.php.net to get a copy of this message | ||
Warning: This unpack function makes the array with keys starting at 1 instead of starting at 0.
For example:
<?php
function read_field($h) {
$a=unpack("V",fread($h,4));
return fread($h,$a[1]);
}
?>
----
Server IP: 66.207.199.35
Probable Submitter: 24.207.61.48
----
Manual Page -- http://www.php.net/manual/en/function.unpack.php
Edit -- https://master.php.net/note/edit/82146
Del: integrated -- https://master.php.net/note/delete/82146/integrated
Del: useless -- https://master.php.net/note/delete/82146/useless
Del: bad code -- https://master.php.net/note/delete/82146/bad+code
Del: spam -- https://master.php.net/note/delete/82146/spam
Del: non-english -- https://master.php.net/note/delete/82146/non-english
Del: in docs -- https://master.php.net/note/delete/82146/in+docs
Del: other reasons-- https://master.php.net/note/delete/82146
Reject -- https://master.php.net/note/reject/82146
Search -- https://master.php.net/manage/user-notes.php