title: JQuery GET PHP Array on another page via AJAX
body: <p>Is it possible to get a PHP array created on another page via AJAX? This is what I have so far:</p>
  
  <p><code>index.php</code></p>
  
  <pre><code>$.ajax({
     url: 'array.php', 
     type: 'GET',
  
     complete: function(data) {
        $('#div').html(data.responseText);
     }
  });
  </code></pre>
  
  <p><code>array.php</code></p>
  
  <pre><code>$arr = array('red', 'blue', 'green');
  echo $arr; //echo it?
  </code></pre>
  
  <p>As you can see, I'm trying to load <code>$arr</code> into a div on index.php. Is this possible?</p>