title: Check if a string contains a set of characters at the end of a string
body: <p>I have a simple problem, but has become a troublesome problem:</p>
  
  <pre><code>$variable="This is some text***";
  
  if (strpos($variable,'*') !== false) {
     echo 'found *';
  } else {
     echo 'not found *';
  }
  </code></pre>
  
  <p>But it will find a <code>*</code> in the text no matter how many <code>*</code>s there are.</p>
  
  <p>I want to make it only can be found by searching specified star, *** (three stars) instead only * (one star).</p>