How Can I loop with array?
<p>When In print_r or var_dump</p>

<pre><code>echo "&lt;pre&gt;";
echo var_dump($groupname);
echo "&lt;/pre&gt;";
</code></pre>

<p>I got the result</p>

<pre><code>array(2) {
  [0]=&gt;
  object(stdClass)#330 (1) {
    ["name"]=&gt;
    string(3) "AAA"
  }
  [1]=&gt;
  object(stdClass)#332 (1) {
    ["name"]=&gt;
    string(3) "BBB"
  }
}
</code></pre>

<p>Now I want to got the result from the array.</p>

<pre><code>AAA | BBB
</code></pre>
