] Bitwise NOT operator?
From your example, this would have shown me what I needed to know:
Then taking the value of E_NOTICE...
1000
... and inverting it via ~:
0111
As it was, I assumed the 32-bit number was there because the author
wanted it there, not because
Please stop arguing this pointless topic on the php mailing list.
Regards
Peter
--
hype
WWW: http://plphp.dk / http://plind.dk
LinkedIn: http://www.linkedin.com/in/plind
BeWelcome/Couchsurfing: Fake51
Twitter: http://twitter.com/kafe15
/hype
--
PHP General Mailing List (http://www.php.net/)
From: Richard Quadling
On 24 August 2010 21:42, Andy McKenzie amckenz...@gmail.com wrote:
On Tue, Aug 24, 2010 at 3:55 PM, Ford, Mike m.f...@leedsmet.ac.uk wrote:
From: Andy McKenzie [mailto:amckenz...@gmail.com]
From your example, this would have shown me what I needed to know:
Then taking
On 20 August 2010 17:00, Andy McKenzie amckenz...@gmail.com wrote:
Thanks to everyone who responded. I've dealt with binary math
before, but it never occurred to me (and doesn't seem to be anywhere
in the document page at php.net!) that it would automatically pad the
number I entered.
There
On Tue, Aug 24, 2010 at 11:06 AM, Richard Quadling rquadl...@gmail.com wrote:
On 20 August 2010 17:00, Andy McKenzie amckenz...@gmail.com wrote:
Thanks to everyone who responded. I've dealt with binary math
before, but it never occurred to me (and doesn't seem to be anywhere
in the document
On Tue, 2010-08-24 at 12:24 -0400, Andy McKenzie wrote:
On Tue, Aug 24, 2010 at 11:06 AM, Richard Quadling rquadl...@gmail.com
wrote:
On 20 August 2010 17:00, Andy McKenzie amckenz...@gmail.com wrote:
Thanks to everyone who responded. I've dealt with binary math
before, but it never
-Original Message-
From: Andy McKenzie [mailto:amckenz...@gmail.com]
Sent: 24 August 2010 17:24
To: php-general@lists.php.net
Subject: Re: [PHP] Bitwise NOT operator?
From your example, this would have shown me what I needed to know:
Then taking the value of E_NOTICE...
1000
On Tue, Aug 24, 2010 at 3:55 PM, Ford, Mike m.f...@leedsmet.ac.uk wrote:
-Original Message-
From: Andy McKenzie [mailto:amckenz...@gmail.com]
Sent: 24 August 2010 17:24
To: php-general@lists.php.net
Subject: Re: [PHP] Bitwise NOT operator?
From your example, this would have shown
Hey everyone,
I'm really not sure what's going on here: basically, the bitwise
NOT operator seems to simply not work. Here's an example of what I
see.
Script
$ cat bintest2.php
?php
$bin = 2;
$notbin = ~$bin;
echo Bin: . decbin($bin) . !bin: . decbin($notbin)
On 20 August 2010 17:10, Andy McKenzie amckenz...@gmail.com wrote:
Hey everyone,
I'm really not sure what's going on here: basically, the bitwise
NOT operator seems to simply not work. Here's an example of what I
see.
Script
$ cat bintest2.php
?php
$bin = 2;
On 20 August 2010 17:41, Peter Lind peter.e.l...@gmail.com wrote:
On 20 August 2010 17:10, Andy McKenzie amckenz...@gmail.com wrote:
Hey everyone,
I'm really not sure what's going on here: basically, the bitwise
NOT operator seems to simply not work. Here's an example of what I
see.
Thanks to everyone who responded. I've dealt with binary math
before, but it never occurred to me (and doesn't seem to be anywhere
in the document page at php.net!) that it would automatically pad the
number I entered.
The example I gave was essentially a test I was running: in the
real
12 matches
Mail list logo