Re: documentation on "<<<"
| From: | Dennis Sterzenbach | Date: | Wed, 01 Oct 2003 17:29:16 +0000 |
| Subject: | Re: documentation on "<<<" | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-164591@lists.php.net to get a copy of this message | ||
Sorry forgot about the heredoc, just waste my post unterneath
--
Dennis
"Dennis Sterzenbach" <lists@darknoise.de> wrote in message
news:20031001172244.95215.qmail@pb1.pair.com...
> "Rich Fox" <rfox@esops.com> wrote in message
> news:20031001170735.66121.qmail@pb1.pair.com...
> > Can someone point me to documentation on the <<< operator? I am
> wondering if
> > there are some quirks I don't know about. Yet I can't find it
> documented on
> > the php website.
> >
> > THanks,
> >
> > Rich
>
> I've never seen a <<< operator.
> Do you mean << (shl, shift left)?
> shift left means each step multiplying by 2:
> $a = 4;
> $s = 2;
> $value = $a << 1; // $a * 2
> $value = $s << 2; // $s * 4
> $value = $a << 4; // $a * 16
>
> This is explained under
> http://ww.php.net/manual/en/language.operators.bitwise.php
>
> --
> Dennis