Reply to Re: binary and & vs &=

Your name:

Reply:


Posted by Steve on 11/09/07 15:36

"Rik Wasmus" <luiheidsgoeroe@hotmail.com> wrote in message
news:op.t1i5a5dq5bnjuv@metallium.lan...
On Fri, 09 Nov 2007 15:42:13 +0100, Steve <no.one@example.com> wrote:
> "joshuajnoble" <joshuajnoble@gmail.com> wrote in message
> news:1194618918.690991.128490@v23g2000prn.googlegroups.com...
>> Is there any difference between doing:
>>
>> $var & 0x80;
>
> doesn't not effect the value of $var.
>
>> and
>>
>> $var &= 0x80;
>
> assigns the result of ($var & 0x80) to $var.
>
>> I've seen the second, using the &= in production code, but on my local
>> machine it errors out. Any thoughts?
>
> what error message are you getting?

> On it's own, the error would be a notice that $var is undefined.

that's all i could figure too...so i had to ask.

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация