title: Obtaining all values in php array
body: <p>I have the following array:</p>
  
  <pre><code>Array
  (
     [id] =&gt; 1043847
     [company] =&gt; Array 
         ( 
            [businesstype] =&gt; Array 
                  ( 
                     [0] =&gt; Array 
                         ( 
                            [id] =&gt; 6 
                            [name] =&gt; Business Service Provider 
                         )
                     [1] =&gt; Array
                         (
                            [id] =&gt; 8
                            [name] =&gt; Retailer 
                         ) 
                   )
           ) 
    )
  </code></pre>
  
  <p>I would like to be able to get the value of company -> businesstype -> name for all the arrays inside businesstype so it would display like this:</p>
  
  <p>Business Type(s): Business Service Provider, Retailer</p>
  
  <p>Right now if I do this: </p>
  
  <pre><code>&lt;?php echo($chamber_member['company']['businesstype']['name']); ?&gt;
  </code></pre>
  
  <p>Nothing happens, if I do this:</p>
  
  <pre><code>&lt;?php echo($chamber_member['company']['businesstype'][0]['name']); ?&gt;
  </code></pre>
  
  <p>I get only the one for array [0]. How can I get both values separated by a comma like on the example above? Any help is appreciated, thank you in advance!!</p>