Re: $i++ problem understanding
Available news archives: comp.lang.tcl - comp.lang.python - comp.security.firewalls - sci.crypt - comp.lang.php - comp.lang.javascript
Google
 
Web news.hping.org


comp.lang.php archive

Re: $i++ problem understanding

From: Michael Jack <michael@jack2005.com>
Date: Tue Oct 11 2005 - 12:32:24 CEST

Hi,

What is the meaning of the | operator?

TIA

"Hilarion" <hilarion@SPAM.op.SMIECI.pl> wrote in
> some_function(($i++ * 2) + 4) | 7);
>
> is equivalent to:
>
> some_function(($i * 2) + 4) | 7); $i += 1;
>
>
> Example for pre-increment operator:
>
> some_function((++$i * 2) + 4) | 7);
>
> is equivalent to:
>
> $i += 1; some_function(($i * 2) + 4) | 7);
>
>
>
> Hilarion
Received on Tue Oct 18 02:40:02 2005