title: How to check if *number* is in a array
body: <p>Pretty basic programming question, I know PHP have a function for it, but does the iPhone OS have one?</p>
  
  <p>I want to check if the current indexPath is a value in an array.</p>
  
  <p>PHP Example:</p>
  
  <pre><code>&lt;?php
  $indexPath = 3;
  $array = array("0", "1", "2", "3", "4");
  if (in_array($indexPath, $array)) {
    // Do something
  }
  ?&gt;
  </code></pre>
  
  <p>Does anybody know how to do the same thing in iOS?</p>