title: From Parse to PHP to JS, what types of data?
body: <p><a href="https://stackoverflow.com/questions/41966630/getting-data-out-of-this-array-in-js">enter link description here</a>This is my code in PHP</p>
  
  <pre><code>  $query = new ParseQuery("CourseInfo");
    $query-&gt;equalTo("Admin", "username1");
    $results = $query-&gt;find();
  
  echo $results;
  </code></pre>
  
  <p>This is returned via the XMLHTTPRequest and a callback in my JS file. </p>
  
  <ul>
  <li>What does Parse send to PHP (I thought an array of objects)?</li>
  <li>What does PHP send to JS? (I've no idea)</li>
  <li>How can i access this data in JS?</li>
  </ul>
  
  <p>Thanks!</p>
  
  <p>Update: i found some of the answer here: <a href="https://stackoverflow.com/questions/23638087/php-echoing-array-only-returns-the-word-array-instead-of-its-content">PHP: echoing array only returns the word array instead of its content</a></p>
  
  <p>basically, <code>echo $results</code> just returns the string "array". </p>
  
  <p>Using `print_r($results) gives a very large data array/object?</p>
  
  <p>I'll put this into a <a href="https://stackoverflow.com/questions/41966630/getting-data-out-of-this-array-in-js">new question</a>.</p>