How would I go about getting an array from a php script. As I understand it the data returned to $.post is only things that are echoed in the php file. I've tried using return $array; in php but it doesn't work.
Any help would be greatly appreciated.