Is there an easier way to make sure a value in an array equals something php?
<p>I am currently checking by doing this,</p>

<pre><code>if($user['medicineStudy'] == 1 || $user['thievingStudy'] == 1 || $user['miningStudy'] == 1 || $user['barterStudy'] == 1 || $user['craftingStudy'] == 1 || $user['smithingStudy'] == 1)
</code></pre>

<p>But as I add values I have to manually type them in, is there not a way to search all the values and find out if they equal to 1? The array has lots of other information in it but the values I want to check always end in <code>Study</code>?</p>
