Searching string while looping through $_SESSION variables
<p>Is there a better way to search through $_SESSION variables (or any array) for a particular string than:</p>

<pre><code>foreach($_SESSION as $k =&gt; $v){
    if(strstr($k, 'p_')){
</code></pre>

<p>Thanks.</p>

<p>edit: My keys will look similar to:</p>

<p>p_123
p_456
i_123
...</p>
