title: Php $value as an array learning
body: <p>I'm just learning PHP as I go and I've come across a basic task I need some help understanding.</p>
  
  <p>I have a dataset that contains multiple values. I want to display an output based on the values as they are found. </p>
  
  <pre><code>$value = "1, 2, 5, 7";
  
  If ($value = 1) print "One, "
  If ($value = 2) print "Two, "
  If ($value = 3) print "Three, "
  If ($value = 4) print "Four, "
  If ($value = 5) print "Five, "
  If ($value = 6) print "Six, "
  If ($value = 7) print "Seven, "
  </code></pre>
  
  <p>Expected output would be One, Two, Five, Seven, </p>
  
  <p>I've tried switch, case and that works fine on datasets where I have one value in the data set. But doesn't work if there are multiple values. I'm assuming I need to define $value as an array in order to achieve this? </p>