//PHP: file.php
<?php
//sample array
$myarray = array('food', 'sports', 'other stuff');
echo $myarray;
?>
//JQuery
$.ajax({
url: 'file.php',
type: 'POST',
success: function(data){
console.log(data); //Comes out "Array" instead of the contents of the array. How do I do this?
}
});