News Feed

News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way
How and When do you use Bitwise?
April 06, 2012 @ 10:30:32

In this new question to Reddit, there's a question about the usage of bitwise operators - when they might come in useful.

As I get deeper into PHP I notice some lower level functionality that looks like it could be interesting, maybe even useful. I'm trying (other than switching the hex value of a color) to figure out when Bitwise operators might come in handy. Any real world examples?

Responses to the post mention a few cases they'd be useful in - handling permissions, route matching and error reporting. You can find out more about bitwise operators in PHP the PHP manual.

0 comments voice your opinion now!
bitwise usage opinion operator

blog comments powered by Disqus

Similar Posts 7 Reasons Why WordPress Made PHP Popular, not PHP Frameworks

WorkingSoftware Blog: Your templating engine sucks & everything you've written is spaghetti code

Mikkel Høgh: Drupal is still a gated community

Derick Rethans: On Backwards Compatibility and not Being Evil

Anthony Ferrara: Scalar Types and PHP

Community Events

Don't see your event here?
Let us know!

release application library community opinion framework podcast performance introduction series api php7 laravel interview example symfony2 voicesoftheelephpant part2 configure conference

All content copyright, 2015 :: - Powered by the Solar PHP Framework