title: PHP Compare integers
body: <p>I have the following integers<br><br></p>
  
  <pre><code>7
  77
  0
  20
  </code></pre>
  
  <p>in an array. I use them to check from where a call originated.<br>
  Numbers like <code>730010123, 772930013, 20391938.</code>
  What I need to do is I need a way to check if the number starts with 7 or 77 for an example.
  <br>
  <br>
  Is there any way to do this in <code>PHP</code> and avoid a thousand if statements?
  <br>
  One issue I am having is that if I check if the number starts with 7 the numbers that start with 77 are being called as well. Note that 7 numbers are mobile and 77 are shared cost numbers and not equal in any way so I need to separate them.</p>