title: Check if string ends with a string from an array
body: <p>How can I detect if a string ends with values inside an array?</p>
  
  <pre><code>array('.1.jpg','.2.jpg','.3.jpg','.4.jpg','.5.jpg','.6.jpg','.7.jpg','.8.jpg','.9.jpg');
  </code></pre>
  
  <p>the string can be: <code>image.1.jpg</code> or it can be <code>image.11.jpg</code></p>
  
  <p>But I need to find only if string ends with one the values inside the array. </p>