title: split array values into different divs
body: <p>I have a php array generated by Advanced custom field.
  here is my php code:</p>
  
  <pre><code>&lt;?php
  $rows = get_field('nous_suivre',11 ); // get all the rows
  print_r($rows)
  ?&gt;
  </code></pre>
  
  <p>when I print_r my array, here is what I get:</p>
  
  <pre><code>Array
  (
      [0] =&gt; Array
          (
              [nom] =&gt; Facebook
              [lien] =&gt; http://www.facebook.com/ID
          )
  
      [1] =&gt; Array
          (
              [nom] =&gt; Twitter
              [lien] =&gt; http://www.twitter.com/ID
          )
  
      [2] =&gt; Array
          (
              [nom] =&gt; Instagram
              [lien] =&gt; http://www.instagram.com/ID
          )
  
  )
  </code></pre>
  
  <p>what I'm trying to do is to split my array content into separate divs, without incrementation.</p>
  
  <p>here is what I'm trying to get:</p>
  
  <pre><code>&lt;div id="1"&gt;&lt;a href="http://www.facebook.com/ID"&gt;Facebook&lt;a&gt;&lt;/div&gt; qsdjqslkdqjkg qsdhjqsd &lt;div id="2"&gt;&lt;a href="http://www.instagram.com/ID"&gt;Instagram&lt;a&gt;&lt;/div&gt;
  
  div id="8"&gt;&lt;a href="http://www.twitter.com/ID"&gt;Twitter&lt;a&gt;&lt;/div&gt;
  </code></pre>
  
  <p>in fact I need to echo wherever I want values from rows.
  when reading on the net, I tried for example to get "Facebook", this:</p>
  
  <pre><code>&lt;?php echo $row[0]-&gt;[nom]; ?&gt; // get value "nom" from first row of "$row" table; 
  </code></pre>
  
  <p>but it's not working.</p>