If you are not going to use json you can do something like this.
you can create a string like this in php (split it by any delimiter)
$arr = "1;2;3;4;5;6;7" ;
//make an ajax call and get this string (say str) arr = str.split(";");
split () returns an array
arr is 1 arr is 2 and so on !!
source to share