title: how to put each php foreach value into each jquery ajax
body: <pre><code>foreach($data['data'] as $data){
      $count = $data['number'];
  }
  
  // $data['number']; will return some number like:
  
  159809
  359107
  249178
  ... //10+ numbers
  </code></pre>
  
  <p>Then, how to put each php foreach value into each <code>jquery ajax</code>? (put every number via a jquery ajax, there will be 10+ ajax calls, and return all the data in one div). Thanks.</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
  jQuery(document).ready(function(){
      $.ajax({
          url: "process.php", 
          dataType: "html",
          type: 'POST', 
          data: "items=&lt;?php echo $count; ?&gt;", //each $count value in each ajax
          success: function(data){
              $("#result").html(data);
          }
      });
  });
  &lt;/script&gt;
  &lt;div id="result"&gt;&lt;/div&gt;
  </code></pre>