title: how to get two arrays from php using json,jquery ajax?
body: <p>I want to build a graph in jqchart where i need to get two arrays</p>
  
  <p>Now i want to perform operation as given below.Which is giving error ofcourse.</p>
  
  <pre><code>html
   $.ajax(
          {
              type: "GET",
              url: "customer_coverage.php",
              data: {id:id},
              contentType: "application/json",
              dataType: "json",
              success: function (data21,data22) {
  
                  initChart2(data21,data22);
              }
          });
  
  
  
  
          function initChart2(data21,data22) {
              $('#jqChart2').jqChart({
  
  
                  series: [
                  {
                              type: 'column',
                              title: 'no of days ',
                  data:data21,
  
                          },
                  {
                              type: 'column',
                              title: 'no of days ',
              data:data22,
  
                          },
  
  
                          ]
              });
          }
  </code></pre>
  
  <p>heres PHP code</p>
  
  <pre><code>  echo json_encode($arr1);
    echo json_encode($arr2);
  </code></pre>
  
  <p>So any one has idea of how to do it?</p>