somewhere in file1.php
$myArray = array();
$myArray = "ajax tech";
$myArray = 20;
somewhere in the page that i need the data to display :
var myArray = new Array();
myArray = xmlHttp.responseText;
alert(myArray); //will alert 'Array'
alert(myArray); //alerts 'undefined'