title: how to extract data from an array in PHP
body: <p>Hello Stack Overflow i hope you are well today;</p>
  
  <p>So i am using jQuery to append a form with more input fields;
  The Session is storing the data as an Array for the key: Children.</p>
  
  <p>I would like to know show the user the data in that array how would this be done?</p>
  
  <p>jQuery that adds the input fields (some pages previous)</p>
  
  <pre><code> $('.children-main-add').click(function(){
      var attrName = $(this).attr('name');
      var count = $(this).attr('count');
      $(this).attr('count', (parseInt(count)+1))
      var input = $('&lt;input /&gt;');
      input.attr('type','text')
      input.attr('name',attrName+"["+count+"]" ) 
      $('.children-main').append($('&lt;li /&gt;').append(input));
      $('#content li').removeClass('alt');
      $('#content li:odd').addClass('alt');
      $(this).val('Add Another Child');
  })
  </code></pre>
  
  <p>The data from the session : Key: children / Value: Array</p>
  
  <p>If i was not clear on something please let me know !</p>
  
  <p>I thank you in advance for your help</p>