title: PHP Hex to Integer
body: <p>I'm integrating a PHP application with an API that uses permissions in the form of <code>0x00000008</code>, <code>0x20000000</code>, etc. where each of these represents a given permission.  Their API returned an integer.  In PHP, how do I interpret something like <code>0x20000000</code> into an integer so I can utilize bitwise operators?</p>
  
  <p>Another dev told me he thought these numbers were hex annotation, but googling that in PHP I'm finding limited results.  <strong>What kind of numbers are these and how can I take an <code>integer</code> set of permissions and using bitwise operators determine if the user can <code>0x00000008</code></strong>.</p>