How to get particular array value in php?
<p>I have the following <code>$qtips_messages</code> array,</p>

<pre><code>Array
(
    [0] =&gt; Array
        (
            [id] =&gt; 1
            [tips_title] =&gt; email_tips 
            [tips_message] =&gt; ex:xxxxx@xyz.com
            [tips_key] =&gt; key_email
        )

    [1] =&gt; Array
        (
            [id] =&gt; 2
            [tips_title] =&gt; website_tips 
            [tips_message] =&gt; ex:http://www.yahoo.co.in
            [tips_key] =&gt; key_website
        )

    [2] =&gt; Array
        (
            [id] =&gt; 3
            [tips_title] =&gt; zipcode_tips
            [tips_message] =&gt; ex:60612
            [tips_key] =&gt; key_zipcode
        )

    [3] =&gt; Array
        (
            [id] =&gt; 4
            [tips_title] =&gt; phone_tips 
            [tips_message] =&gt; ex:1234567890
            [tips_key] =&gt; key_phone
        )
)
</code></pre>

<p>For example, I want to get the tips message for the tip_title 'email_tips'
I have tried with following code,</p>

<pre><code>foreach($qtips_messages as $qtipsArray){
    foreach($qtipsArray as $qkey=&gt;$qvalue){
        if($qtipsArray['tips_title'] == 'email_tips'){
            $emailtipsMessage = $qtipsArray['tips_message'];
        }
    }
}
</code></pre>

<p>When i ran the above code i did not get any value.<br>
What is wrong with this code?</p>
