PHP: Associative arrays with boolean values
<p>I have an associative php array in which values are boolean. I'm trying to iterate the array and assign it to variables, however, the extracted values comes out blank</p>

<p>var_dump(info) output is:</p>

<pre><code>array(6) 
{ 
    ["are_all_daily_budgets_spent"]=&gt; bool(false) 
    ["has_account_hit_spend_limit"]=&gt; bool(false) 
    ["has_campaign_group_hit_spend_limit"]=&gt; bool(false) 
    ["is_adgroup_partially_rejected"]=&gt; bool(false) 
    ["is_account_closed"]=&gt; bool(false) 
    ["is_daily_budget_spent"]=&gt; bool(false) 
}
</code></pre>

<p>I need to extract the boolean values and assign it to separate variables.</p>

<p>I tried doing the following code:</p>

<pre><code>foreach ($info as $key =&gt; $value) {
        echo $key;
        echo $value;    
}
</code></pre>

<p>But statement echo $value doesn't produce any results.</p>

<p>Also, can you help me producing the following output:
<code>are_all_daily_budgets_spent = 0
   has_account_hit_spend_limit = 0</code></p>