title: how can I return array from php to javascript using ajax
body: <p>i have this ajax code</p>
  
  <pre><code>xmlhttp = new XMLHttpRequest();
  xmlhttp.onreadystatechange=function(){
      if (xmlhttp.readyState==4 &amp;&amp; xmlhttp.status==200)
      {
          document.getElementById('addIO').innerHTML+=xmlhttp.responseText;
      }
  }
  xmlhttp.open("GET","http://localhost/Mar7ba/Ontology/getRelatedConceptsAndRelations/3/TRUE",true);
  xmlhttp.send();
  </code></pre>
  
  <p><p>and I have a php array<p>
  <code>$cars=array("Saab","Volvo","BMW","Toyota");
  </code></p>
  
  <p>how can i send the array $cars to my javascript ?</p>