note 7653 modified in function.pack by felipe
| From: | felipe@php.net | Date: | Mon, 21 Jul 2008 00:39:43 +0000 |
| Subject: | note 7653 modified in function.pack by felipe | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-142372@lists.php.net to get a copy of this message | ||
Note that the the upper command in perl looks like this:
$binarydata = pack ("n v c*", 0x1234, 0x5678, 65, 66);
In PHP it seems that no whitespaces are allowed in the first parameter. So if you want to convert
your pack command from perl -> PHP, don't forget to remove the whitespaces!
--was--
Note that the the upper command in perl looks like this:<br>
$binarydata = pack ("n v c*", 0x1234, 0x5678, 65, 66);<br>
In PHP it seems that no whitespaces are allowed in the first parameter. So if you want to convert
your pack command from perl -> PHP, don't forget to remove the whitespaces!
http://php.net/manual/en/function.pack.php