title: Convert binary string to integer in php
body: <p>In php how do I convert a string "1010101010" into the integer value represented by this binary number?</p>
  
  <p>eg "10" would go to 2, "101" would go to 5</p>