title: Two unusual PHP operators used together to get image pixel color, please explain
body: <p>The PHP <a href="http://www.php.net/manual/en/function.imagecolorat.php" rel="nofollow">imagecolorat()</a> function can be used to get the RGB values of an image pixel, as demonstrated in the documentation:</p>
  
  <pre><code>$im = imagecreatefrompng("php.png");
  $rgb = imagecolorat($im, 10, 15);
  $r = ($rgb &gt;&gt; 16) &amp; 0xFF;
  $g = ($rgb &gt;&gt; 8) &amp; 0xFF;
  $b = $rgb &amp; 0xFF;
  </code></pre>
  
  <p>I don't understand the last three lines at all; I know that they return the correct values, but I cannot figure out how the <code>&gt;&gt;</code> and <code>&amp;</code> operators work together to do so. Could someone please explain? </p>
  
  <p>For reference, when <code>$rgb = 9750526</code>, the RGB values turn out to be<code>(148,199,254)</code>.</p>
  
  <p>Thanks for any responses.</p>