title: PHP check if a string contains a specific character
body: <p>I have 2 strings <code>$verify</code> and <code>$test</code>.  I want to check if <code>$test</code> contains elements from <code>$verify</code> at specific points. <code>$test[4] = e</code> and <code>$test[9] = ]</code>. How can I check if <code>e</code> and <code>]</code> in <code>$verify</code>?</p>
  <pre><code>$verify = &quot;aes7]&quot;;
  $test = &quot;09ske-2?;]3fs{&quot;;
  
  if ($test[4] == $verify AND $test[9] == $verify) {
      echo &quot;Match&quot;;
  } else {
      echo &quot;No Match&quot;;
  }
  </code></pre>