title: Search for matching partial values in an array
body: <pre><code>$target = 285
  $array = array("260-315", "285-317", "240-320")
  </code></pre>
  
  <p>I need to search the array for the value that begins with the $target value. Also, the <code>$target</code> value will not be limited to 3 digits so I'm searching for a match of the digits before the hyphen.</p>
  
  <p>So I want to end up with</p>
  
  <pre><code>$newTarget = 285-317
  $finalTarget = 317
  </code></pre>
  
  <p>Note: I'm only searching for a match of the digits before the hyphen so "200-285" would not be a match</p>