i saw bitwise operators in the manual, but i fail to see the applicability.
Anyone some good stories to share?
http://nl.php.net/manual/en/language.operators.bitwise.php
Set error reporting level to E_ALL plus E_STRICT:
error_reporting(E_ALL | E_STRICT);
Set error reporting level to E_ALL except no notices:
error_reporting(E_ALL ^ E_NOTICE);
I found bitwise operations by trying to use ^ for exponentials, strange that it is used for bitwise stuff
PHP does not have an exponent operator. See the [man]pow/man function for that functionality.
so any other common uses for bitwise operations. for web programming it doesn't seem like a common task. Is it an historical artifact?
It's not something you tend to see used a lot in high-level programming languages any more, though most (virtually all?) support it. It is very common, however, in low-level programming for things like device drivers and compilers, where speed and code efficiency are more important than code readability.