note 22399 deleted from function.ord by danbrown

From: Date: Tue, 11 Oct 2011 16:17:56 +0000
Subject: note 22399 deleted from function.ord by danbrown
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-183812@lists.php.net to get a copy of this message
Note Submitter: adam at adeptsoftware dot com ---- The above comment about bindec is wrong, I think. bindec accepts a string containing a binary number, not a "binary string" - right? We need to clean up this terminology. If you just want to extract a dword/long int from a binary string, this is more accurate (intel endian): $Number = ord($Buffer{0}) | (ord($Buffer{1})<<8) | (ord($Buffer{2})<<16) | (ord($Buffer{3})<<24);

« previous php.notes (#183812) next »