title: How to check if a string exists within an array in PHP?
body: <p>So I have an array of acceptable animals:</p>
  
  <pre><code>$animals = array('tiger','lion','dog');
  </code></pre>
  
  <p>How can I see if the animal submitted by the user:</p>
  
  <pre><code>$userSubmittedAnimal = clean($_POST['animal']);
  </code></pre>
  
  <p>matches one of the 3 acceptable ones?</p>