note 22399 added to function.ord

From: Date: Mon, 17 Jun 2002 01:05:31 +0000
Subject: note 22399 added to function.ord
Groups: php.notes 
Request: Send a blank email to php-notes+get-31930@lists.php.net to get a copy of this message
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); -- http://www.php.net/manual/en/function.ord.php http://master.php.net/manage/user-notes.php?action=edit+22399 http://master.php.net/manage/user-notes.php?action=delete+22399 http://master.php.net/manage/user-notes.php?action=reject+22399

« previous php.notes (#31930) next »