Comparing javascript variable to PHP array
<p>I have a variable in javascript and a multidimensional array in PHP. I want to check the information contained in the PHP array to see which elements contain the equivalent of the the javascript variable, and then display those elements. I'm not sure what the best way to do this is. </p>

<p>I'm inclined to convert the PHP array to a js array of objects (remember, it's multidimensional) and do the comparison in javascript, and then use jQuery to output the right elements. But that all seems like a pretty big hassle for what seems like a pretty simple problem. </p>

<p>Is there a better way?</p>
